A
Austin
I converted a project from VC6 to VC7. There is a problem in one class
of this dll.
///Class1.h
class CClass1: base class
{
private:
int m_nTest;
public :
void Function1()
}
I access m_nTest in Function1 . Set the value of m_nTest to 8. But I
can not get the correct update in the watch window, still display 0.
But if I set the m_nTest to a temp declared variable, like int n =
m_nTest; then n equals 8(in the watch window). I try to look into the
Disassembly code. I found the address of m_nTest is not the same value
as sum of the class address and the offset(less 8 byte). That means I
can set and get the correct value of this class, but I can not see it
in the watch window. I think the project still has problem and it will
cause other issues sooner or later. So I want anyone give me some
suggestion about it.
Appriciate any of your comments.
of this dll.
///Class1.h
class CClass1: base class
{
private:
int m_nTest;
public :
void Function1()
}
I access m_nTest in Function1 . Set the value of m_nTest to 8. But I
can not get the correct update in the watch window, still display 0.
But if I set the m_nTest to a temp declared variable, like int n =
m_nTest; then n equals 8(in the watch window). I try to look into the
Disassembly code. I found the address of m_nTest is not the same value
as sum of the class address and the offset(less 8 byte). That means I
can set and get the correct value of this class, but I can not see it
in the watch window. I think the project still has problem and it will
cause other issues sooner or later. So I want anyone give me some
suggestion about it.
Appriciate any of your comments.