c++ - Problem with method defined in VC++ header file -
I have a class in a DLL that is used in many other DLLs and EXEs. Some of the files contained in this are defined methods (i.e. method is in the body .h file) which is included in other binaries. One of these fits me: int GetVersion () {return nVersion; }
.
It is always returning -842150451
, but when I run into debugger and see the class member variable, nversion
is 100
.
Any ideas as a way to debug this problem? I'm really stuck.
(Note: This is working fine for a decade! But now we are moving our code from VC6.0 to VS2005, and this is not smooth ...)
< Div class = "post-text" itemprop = "text">The value in hex looks like 0xCDCDCDCD, which is normally an undisclosed memory in debug build. Are you sure the nVersion has been started?
Comments
Post a Comment