I have a class in a DLL that's used in many other DLLs and EXEs. It has a couple of methods defined in the include file (i.e. the method body is in the .h file) that's included in the other binaries. One of them is giving me fits: int GetVersion() { return nVersion; }.
It is always returning -842150451, but when I run in the debugger and look at the class member variables, nVersion is 100.
Any ideas as to how to debug this problem? I am really stuck.
(Note: This has been working fine for a decade! But now we are moving our code from VC6.0 to VS2005, and it has not been smooth...)