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
这是什么原因啊 我只是修改一个控件的功能 出现错误我又把代码恢复过来了 为什么这个错误还有啊
哪位高手指点下
谢谢啦

解决方案 »

  1.   

    那你CHandleMap到底是什么
    贴出来看看吧
      

  2.   

    void CWnd::AttachControlSite(CHandleMap* pMap)
    {
    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);
    }
    }
    }
      

  3.   

    // CHandleMap
    //
    //  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里面有定义,但是貌似不能直接使用,而且里面的注释也说明不要直接使用里面的成员。