﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-不积跬步,无以至千里</title><link>http://www.cppblog.com/uniker/</link><description /><language>zh-cn</language><lastBuildDate>Fri, 17 Apr 2026 11:35:18 GMT</lastBuildDate><pubDate>Fri, 17 Apr 2026 11:35:18 GMT</pubDate><ttl>60</ttl><item><title>C++类实例化过程</title><link>http://www.cppblog.com/uniker/archive/2010/08/16/123619.html</link><dc:creator>Uniker</dc:creator><author>Uniker</author><pubDate>Mon, 16 Aug 2010 10:57:00 GMT</pubDate><guid>http://www.cppblog.com/uniker/archive/2010/08/16/123619.html</guid><wfw:comment>http://www.cppblog.com/uniker/comments/123619.html</wfw:comment><comments>http://www.cppblog.com/uniker/archive/2010/08/16/123619.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uniker/comments/commentRss/123619.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uniker/services/trackbacks/123619.html</trackback:ping><description><![CDATA[转载：<a href="http://www.artima.com/cppsource/pure_virtual.html">http://www.artima.com/cppsource/pure_virtual.html</a><br>When you construct an instance of a derived class, what happens, exactly? If the class has a <em>vtbl</em>, the process goes something like the following:<br>
<p>Step 1: Construct the top-level base part:.
<ol type=a>
    <li>Make the instance point to the base class's <em>vtbl</em>.
    <li>Construct the base class instance member variables.
    <li>Execute the body of the base class constructor. </li>
</ol>
<p>&#160;</p>
<p>Step 2: Construct the derived part(s) (recursively):
<ol type=a>
    <li>Make the instance point to the derived class's <em>vtbl</em>.
    <li>Construct the derived class instance member variables.
    <li>Execute the body of the derived class constructor. </li>
</ol>
<p>&#160;</p>
<p>Destruction happens in reverse order, something like this: </p>
<p>Step 1: Destruct the derived part:
<ol type=a>
    <li>(The instance already points to the derived class's <em>vtbl</em>.)
    <li>Execute the body of the derived class destructor.
    <li>Destruct the derived class instance member variables. </li>
</ol>
<p>&#160;</p>
<p>Step 2: Destruct the base part(s) (recursively):
<ol type=a>
    <li>Make the instance point to the base class's vtbl.
    <li>Execute the body of the base class destructor.
    <li>Destruct the base class instance member variables. </li>
</ol>
<img src ="http://www.cppblog.com/uniker/aggbug/123619.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uniker/" target="_blank">Uniker</a> 2010-08-16 18:57 <a href="http://www.cppblog.com/uniker/archive/2010/08/16/123619.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VS 2003 如何打开C++的RTTI机制</title><link>http://www.cppblog.com/uniker/archive/2010/06/21/118364.html</link><dc:creator>Uniker</dc:creator><author>Uniker</author><pubDate>Mon, 21 Jun 2010 06:45:00 GMT</pubDate><guid>http://www.cppblog.com/uniker/archive/2010/06/21/118364.html</guid><wfw:comment>http://www.cppblog.com/uniker/comments/118364.html</wfw:comment><comments>http://www.cppblog.com/uniker/archive/2010/06/21/118364.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uniker/comments/commentRss/118364.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uniker/services/trackbacks/118364.html</trackback:ping><description><![CDATA[<p>问题描述：在编译的时候出现__none_rtti_object异常<br><br>解决方法：<br>编译器开启支持运行时刻识别/GR,/GR（启用运行时类型信息）<br>Vs2003 如何打开C++的RTTI机制<br>说明：此选项 (/GR) 添加代码以便在运行时检查对象类型。当指定此选项时，编译器定义 _CPPRTTI 预处理器宏。默认情况下，此选项被清除 (/GR&#8211;)。<br>在 Visual Studio 开发环境中设置此编译器选项<br>&nbsp;&nbsp; 1. 打开此项目的&#8220;属性页&#8221;对话框。<br>&nbsp;&nbsp; 2. 单击&#8220;C/C++&#8221;文件夹。<br>&nbsp;&nbsp; 3. 单击&#8220;语言&#8221;属性页。<br>&nbsp;&nbsp; 4. 修改&#8220;启用运行时类型信息&#8221;属性。<br></p>
<img src ="http://www.cppblog.com/uniker/aggbug/118364.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uniker/" target="_blank">Uniker</a> 2010-06-21 14:45 <a href="http://www.cppblog.com/uniker/archive/2010/06/21/118364.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>终于有了自己的博客了</title><link>http://www.cppblog.com/uniker/archive/2010/03/31/111129.html</link><dc:creator>Uniker</dc:creator><author>Uniker</author><pubDate>Wed, 31 Mar 2010 03:15:00 GMT</pubDate><guid>http://www.cppblog.com/uniker/archive/2010/03/31/111129.html</guid><wfw:comment>http://www.cppblog.com/uniker/comments/111129.html</wfw:comment><comments>http://www.cppblog.com/uniker/archive/2010/03/31/111129.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/uniker/comments/commentRss/111129.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/uniker/services/trackbacks/111129.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 终于有了自己的技术博客了，以往写代码的时候总是有一些问题解决了就没有记录下来，后来重新碰到此类问题又得重头开始解决，很是恼火。希望在以后的开发中能够将所学、所感能够记录于此。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 同时希望能够与大家同进步
<img src ="http://www.cppblog.com/uniker/aggbug/111129.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/uniker/" target="_blank">Uniker</a> 2010-03-31 11:15 <a href="http://www.cppblog.com/uniker/archive/2010/03/31/111129.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>