Asked By David Liebtag
19-Nov-09 11:25 PM
I have a program that does this:
HWND Edit =
CreateWindow("Edit","",WS_VISIBLE,0,0,100,100,Parent,0,Instance,0) ;
When the window appears, it is not empty. Instead, it contains the numeric
digit 0.
The problem only happens when I compile with debug.
I have had this kind of thing happen before where empty literal strings are
not empty. It seems to be related to the stack. Sometimes when I have the
problem, I can work around it by moving local variables.
Does anyone know exactly what causes this and/or what I can do about it?
Thanks in advance.
David Liebtag
PS I am using Visual Studio .Net 2003 C++. I know, I know. VS .Net 2003 is
old, but it is what I am using. After all, Microsoft still offers extended
support for it,,,