[开发随笔]Cannot convert from 'UINT (__thiscall CListBoxEx::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
Posted on 2010-03-09 00:30 Jophoenix 阅读(691) 评论(0) 编辑 收藏 举报error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CListBoxEx::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
当使用VS2005调试低版本(VS2003、VC6.0)的程序时,你可能会遇到上面这条错误。产生这条错误的原因是,在VS2005中,改变了程序的返回类型。
解决方法是:将返回类型由UINT改为LRESULT(声明和实现都要修改)。