C++->Command Line里加编译选项
/d1reportSingleClassLayout 查看单个类的对象内存分布
/d1reportAllClassLayout 查看全部类的对象内存分布
举例:
/d1reportSingleClassLayoutMyClass 其中MyClass是你要查看的类,注意中间没有空格
详细参阅Visual C++ 8.0对象布局的奥秘:虚函数、多继承、虚拟继承
C++->Command Line里加编译选项
/d1reportSingleClassLayout 查看单个类的对象内存分布
/d1reportAllClassLayout 查看全部类的对象内存分布
举例:
/d1reportSingleClassLayoutMyClass 其中MyClass是你要查看的类,注意中间没有空格
详细参阅Visual C++ 8.0对象布局的奥秘:虚函数、多继承、虚拟继承