GetRuntimeClass ()返回的指针是指向哪个对象的CRuntimeClass结构体成员啊

CMyDoc*pMyDoc=newCMyDoc;CMyView*pMyView=newCMyView;cout<<"pMyDoc->IsKindOf(RUNTIME_CL... CMyDoc* pMyDoc = new CMyDoc;
CMyView* pMyView = new CMyView;
cout << "pMyDoc->IsKindOf(RUNTIME_CLASS(CMyDoc)) " << pMyDoc->IsKindOf(RUNTIME_CLASS(CMyDoc)) << "\n";
cout << "pMyDoc->IsKindOf(RUNTIME_CLASS(CDocument)) " << pMyDoc->IsKindOf(RUNTIME_CLASS(CDocument)) << "\n";
cout << "pMyDoc->IsKindOf(RUNTIME_CLASS(CCmdTarget)) " << pMyDoc->IsKindOf(RUNTIME_CLASS(CCmdTarget)) << "\n";
cout << "pMyDoc->IsKindOf(RUNTIME_CLASS(CObject)) " << pMyDoc->IsKindOf(RUNTIME_CLASS(CObject)) << "\n";
cout << "pMyDoc->IsKindOf(RUNTIME_CLASS(CWinApp)) " << pMyDoc->IsKindOf(RUNTIME_CLASS(CWinApp)) << "\n";
cout << "pMyDoc->IsKindOf(RUNTIME_CLASS(CView)) " << pMyDoc->IsKindOf(RUNTIME_CLASS(CView)) << "\n";

cout << "pMyView->IsKindOf(RUNTIME_CLASS(CView)) " << pMyView->IsKindOf(RUNTIME_CLASS(CView)) << "\n";
cout << "pMyView->IsKindOf(RUNTIME_CLASS(CObject)) " << pMyView->IsKindOf(RUNTIME_CLASS(CObject)) << "\n";
cout << "pMyView->IsKindOf(RUNTIME_CLASS(CWnd)) " << pMyView->IsKindOf(RUNTIME_CLASS(CWnd)) << "\n";
cout << "pMyView->IsKindOf(RUNTIME_CLASS(CFrameWnd)) " << pMyView->IsKindOf(RUNTIME_CLASS(CFrameWnd)) << "\n";
展开
 我来答
fllowfeel
2009-03-28 · TA获得超过183个赞
知道答主
回答量:180
采纳率:0%
帮助的人:142万
展开全部
构建类信息表时调用这个函数 返回自身类的指针 用于自己创建自己
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式