Microsoft 基础类通过 Win32 提供面向对象的精简包装,以在 C++ 实现 GUI 应用程序的快速开发
1.获取运行时类型
CAge a(21);
CRuntimeClass* prt = a.GetRuntimeClass();
ASSERT(strcmp(prt->m_lpszClassName, “CAge”) == 0);
CObject::GetRuntimeClass: https://msdn.microsoft.com/zh-cn/library/a7t4z25b.aspx
dynamic_cast 运算符: https://msdn.microsoft.com/zh-cn/library/cby9kycs.aspx
typeid 运算符: https://msdn.microsoft.com/zh-cn/library/fyf39xec.aspx
MSDN: https://msdn.microsoft.com/zh-cn/library/hh967573.aspx
MFC 技术说明: https://msdn.microsoft.com/zh-cn/library/h6h0eact.aspx