|
I did not use Doc/View. The Document has a dirty flag - set it to false as you close and you won't get that prompt. I forget it's name though.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Yes, I could do that but I won't know whether the rest of my code has properly modified the document or not.
Is there no way to stop the edit control from telling the document that it is being modified?
Marc
|
|
|
|
|
In the code that updates the edit control, check if the flag is set to dirty. If not, then reset it to not dirty after doing the update.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Thanks Christian!
Again, you've sorted things out!
Marc
|
|
|
|
|
I want to Serialize a CBitmap Varable with some other information.
How Do I Searialize this CBitmap.
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Read the FAQ, or my GDI+ articles.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
I am creating server based multi client chat application. In this regard i like to ask a question. I hope that "experienced" people will answer these easily. Remember that the application is very simple. A client just send text message of certain size to another via server. Server will run on Win2000 machine in StandAlone environment. Please answer the following question:
What do you think the maximum number of sockets my server create on accepting connection. Or in other words
considering the work load as i given in above paragraph, what do you adive me about the maximum number of sockets descriptors i create on my server.
FahadAliKhan
|
|
|
|
|
Ummm... If I'm understanding the architecture of your system, you don't need to create a predefined number of sockets in your server. Just create a single listening socket and (for instance) launch a separate thread to handle each incoming connection obtained with accept . If the workload is not huge, this will work like a charm. Under more sever working conditions, you might need to have a thread pool and some stress figures could have to be taken into account, but I guess this is not the case.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I'm working with a Win32 Console "simple application", using it for testing out certain concepts, but I'm getting couple LNK2001 errors, and after checking MSDN and "Project Settings" (etc.), I still can't figure out why it's happening. Here's the error messages:
=======================
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex
========================
Any help is greatly appreciated.
William
|
|
|
|
|
Possibly you'll have to select a multithreaded version of the C run-time library in your project settings.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hello..
help me plase my auto attendant project . I can not call transfered. help me plase.or sample code adress...
|
|
|
|
|
What version of the Dialogic board are you using? Are you using their own API or their TAPI drivers?
Michael
"Eureka" is Greek for "This bath is too hot"
|
|
|
|
|
We have an application using a data acq card under Win NT. I compiled in Win98 (I did not have Nt available right now but it should work). Without calls to the functions provided by the vendor, the application will work except it does not get data that is.
When I run it in NT with calls to the card using the func provided, Dr Watson gives me an exception in privileged instruction (0xc0000096), Add 0x10002b9b
What I don't understand is why. I thought it might be using an address already used by the system. I tried changing the address of the calls to the card (and change its address) but it doesn't seem to work.
Anyone has any ideas, I would highly appreciate some suggestions.
Thanks in advance.
|
|
|
|
|
Are you sure this data card is compatible with NT? Have you installed the appropriate drivers? If so, check for samples provided by the vendor to see if things are done differently in this OS.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I compiled my program in Win98 and it works fine. When I run it in NT, it gives me the following error:
The procedure entry point ShGetSpecialFolderPathA could not be located in the dynamic link library SHELL32.dll
I am not sure why. I thought maybe it is because IE 4+ or some other things which might update this file is not installed. But I have IE 5 and also SP3+.
Can someone please shed some light on this?
Thanks in advance!!!
|
|
|
|
|
|
MSDN says: Version 4.71 and later of Shell32.dll
So your NT system does not have 4.71 or later of shell32.dll. You get that version by installing the Active Desktop shell.
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hi,
Do we have a method by which we can declare an array
of 16 bytes whose offset remains the same whenever the
program is compiled..
The program is an MFC (EXE)..
Sameer
|
|
|
|
|
Sameer Maggon wrote:
Do we have a method by which we can declare an array
of 16 bytes whose offset remains the same whenever the
program is compiled..
I seriously doubt whether that's possible!
Of course I could be wrong too.
By the way why would you want to do that? Perhaps there are other solutions to your problem
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
While terminating application for testing which i developed using c++ and ocx component i am finding a error maessage is displayed like..
The full err message is
Unhandeled exception in appl.exe(MFC40.dll):0xc0000005:access violation
next err message
6c6e5009 call dword ptr[edi+18h]
I am new to vc++ and have therotical knowledge of c++..
I hope u understand the problem and get back to me.
Thankx in advanced
|
|
|
|
|
Go to project settings an include debug information in your application. Look at some of the articles here on how to do it. Specifically, this by Joseph N NewComer. This will enable you to see the call stack and the problem may become clearer.
|
|
|
|
|
What does the call stack say?
Where in your program is this error occuring can be figured out from the call stack!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Thanx for reply mr Rama krishna and Nish
further regarding my application problem is that
call stack gives this information
Call Stack:
MFC40! 6c6e5009()
MFC40! 6c701124()
COleDispatchDriver::~COleDispatchDriver() line 85 + 15 bytes
MoPoints::~MoPoints() + 20 bytes
$E349() + 19 bytes
doexit(int 0, int 0, int 0) line 353
exit(int 0) line 279 + 13 bytes
WinMainCRTStartup() line 345
KERNEL32! 77e97d08()
Thankx a lot hope u will give me more tips on this..
smarty_sagar@rediffmail.com
Thanx once again
Neonave
|
|
|
|
|
|
Thanx again for reply
I found that we are not using OLE component properly so may be that error is coming..
Can any one help me on ColeDispatchDriver . This is where the error is occurring ,,as some one is developed the code and I am fixing the bug morever I am new to vc++ ,,so having some tough time with this,,
Can any one help me out with this…
Code some what look like this
// COleDispatchDriver
_AFXDISP_INLINE COleDispatchDriver::~COleDispatchDriver()
{ ReleaseDispatch(); }
_AFXDISP_INLINE COleDispatchDriver::operator LPDISPATCH()
{ return m_lpDispatch; }
I hope some one will come further and help me out with this..
Thanks in advance,,
Neonave
|
|
|
|