error C2440

 

error C2440: static_cast: 无法从“UINT (__thiscall CGameFrame::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )(CPoint)
 
 

问题:

error C2440: “static_cast”: 无法从“UINT (__thiscall CGameFrame::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )(CPoint)”

 

解决方案:

 

//.h


afx_msg UINT OnNcHitTest(CPoint Point);

//改为


afx_msg LRESULT OnNcHitTest(CPoint Point);

 

//.cpp


UINT CGameFrame::OnNcHitTest(CPoint Point)

//改为


LRESULT CGameFrame::OnNcHitTest(CPoint Point)


posted @ 2009-12-08 14:33  Maxice  阅读(1822)  评论(0编辑  收藏  举报