2010年6月27日

Visual C++ 8.0对象布局的奥秘:虚函数、多继承、虚拟继承

摘要: 哈哈,从M$ Visual C++ Team的Andy Rich那里又偷学到一招:VC8的隐含编译项/d1reportSingleClassLayout和/d1reportAllClassLayout 。看个复杂的例子吧(如下),现在假设我们想知道Derived类的对象布局,怎么办? 在Project Properties->C++->Command Line->Addition... 阅读全文

posted @ 2010-06-27 21:09 smwikipedia 阅读(174) 评论(0) 推荐(0) 编辑

导航