In order to understand what's really happening in memory when I create classes, add functions, have derived classes, etc., I would like to see the memory layout of my objects. I was told I could use breakpoints or output the memory, but I'm having trouble figuring out exactly what to do (and how to interpret that). As an example, say I have the following classes:
class A {
char a;
};
class B {
char b;
void b_func();
};
void main() {
A objectA;
B objectB;
}
I want to compare how "objectA" and "objectB" look in memory. Using Visual C++ 6.0, or some output functions, how can I see and interpret what is happening?
Your help is greatly appreciated, thank you!
Kim
class A {
char a;
};
class B {
char b;
void b_func();
};
void main() {
A objectA;
B objectB;
}
I want to compare how "objectA" and "objectB" look in memory. Using Visual C++ 6.0, or some output functions, how can I see and interpret what is happening?
Your help is greatly appreciated, thank you!
Kim