C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINOCC.CPP(416) : error C2027: use of undefined type 'CHandleMap'
c:\program files\microsoft visual studio\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINOCC.CPP(416) : error C2227: left of '->LookupPermanent' must point to class/struct/union
这是什么原因啊 我只是修改一个控件的功能 出现错误我又把代码恢复过来了 为什么这个错误还有啊
哪位高手指点下
谢谢啦
c:\program files\microsoft visual studio\vc98\mfc\include\afxstat_.h(109) : see declaration of 'CHandleMap'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC\WINOCC.CPP(416) : error C2227: left of '->LookupPermanent' must point to class/struct/union
这是什么原因啊 我只是修改一个控件的功能 出现错误我又把代码恢复过来了 为什么这个错误还有啊
哪位高手指点下
谢谢啦
解决方案 »
- 如何卸载ImmInstallIME安装的输入法?
- 推荐几个类似DialogBlocks这样的图形界面工具
- 如何实现类似 IE Developer Toolbar 的功能?
- 迷茫二~ (前40给分 建议者+分)
- 调用库
- 在完成端口中怎样发送大数据?
- 控件CGfxOutBarCtrl(它可以实现qq的抽屉效果)从哪里下载,上网没有找到?请给个控件CGfxOutBarCtrl(它可以实现qq的抽屉效果)控件
- 请问:在基于对话框的程序设计时,怎样把一个对话框镶嵌到一个Group Box控件当中?谢谢了
- 这个代码为何出错?(只有一个语句)
- ListView_InsertItem为什么一直返回0??
- 网络编程的问题
- 循环设置CRichEditCtrl控件中的指定文字颜色出错
贴出来看看吧
{
if (this != NULL && m_pCtrlSite == NULL)
{
// Determine if parent is an OLE control container
CWnd* pWndParent = (CWnd*)pMap->LookupPermanent(::GetParent(m_hWnd));
if (pWndParent != NULL && pWndParent->m_pCtrlCont != NULL)
{
// delegate through helper in COleControlSite
pWndParent->m_pCtrlCont->AttachControlSite(this);
}
}
}
//
// Note: Do not access the members of this class directly.
// Use CWnd::FromHandle, CDC::FromHandle, etc.
// The actual definition is only included because it is
// necessary for the definition of CWinThread.这个CHandleMap类在winhand_.h里面有定义,但是貌似不能直接使用,而且里面的注释也说明不要直接使用里面的成员。