<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[wellph的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/wellph</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; wellph]]></copyright><item><title><![CDATA[使用MFC::CArchive]]></title><link>https://blog.youkuaiyun.com/wellph/article/details/12511389</link><guid>https://blog.youkuaiyun.com/wellph/article/details/12511389</guid><author>wellph</author><pubDate>Wed, 09 Oct 2013 16:02:53 +0800</pubDate><description><![CDATA[准确地说，CArchive也属于二进制变长数据，由于CArchive采用了CObject的RTTI特性，同时存储了对象类的信息，因此它对于CObject对象的持久化和反持久化来说，的确是"很好很强大"。
早在第3章我们结合CObject讨论过CArchive的相关知识，要想用上CArchive的强大功能，我们需要做的仅仅是将自己的类定义成支持自创建的CObject子类，并且覆盖默认的Serial]]></description><category></category></item><item><title><![CDATA[CWND * 与 HWND 转换]]></title><link>https://blog.youkuaiyun.com/wellph/article/details/12194327</link><guid>https://blog.youkuaiyun.com/wellph/article/details/12194327</guid><author>wellph</author><pubDate>Mon, 30 Sep 2013 14:35:13 +0800</pubDate><description><![CDATA[CWnd*得到HWnd
CWnd    wnd;   
HWND    hWnd;
hWnd    =    wnd.m_hWnd;           
//    or   
hWnd    =    wnd.GetSafeHwnd(); //推荐  



HWnd得到CWnd
建立一个CWnd对象，然后使用Attach将HWND和CWnd对象联系起来。
CWnd   ]]></description><category></category></item><item><title><![CDATA[CONST的几种用法总结]]></title><link>https://blog.youkuaiyun.com/wellph/article/details/12166941</link><guid>https://blog.youkuaiyun.com/wellph/article/details/12166941</guid><author>wellph</author><pubDate>Sun, 29 Sep 2013 16:06:10 +0800</pubDate><description><![CDATA[关于C++中的const关键字的用法非常灵活，而使用const将大大改善程序的健壮性，参考了康建东兄的const使用详解一文，对其中进行了一些补充，写下了本文。

1.
const常量，如const int max = 100;

优点：const常量有数据类型，而宏常量没有数据类型。编译器可以对前者进行类型安全检查，而对后者只进行字符替换，没有类型安全检查，并且在字符替换时可能会产生意]]></description><category></category></item><item><title><![CDATA[DECLARE_DYNAMIC和IMPLEMENT_DYNAMIC]]></title><link>https://blog.youkuaiyun.com/wellph/article/details/12005241</link><guid>https://blog.youkuaiyun.com/wellph/article/details/12005241</guid><author>wellph</author><pubDate>Wed, 25 Sep 2013 11:07:30 +0800</pubDate><description><![CDATA[IMPLEMENT_DYNAMIC是实现“运行时类型识别”宏，与之相对应的是DECLARE_DYNAMIC(声明“运行时类型识别”宏)。也就是说你在.CPP文件中如果看见有IMPLEMENT_DYNAMIC，则在.H文件中必定有DECLARE_DYNAMIC的声明。

DECLARE_DYNAMIC/DEClARE_DYNAMIC是为了确定运行时对象属于哪一个类而定义的宏。 
DEClARE]]></description><category></category></item></channel></rss>