问题描述:
在将vc6.0程序转换到vs2005或者vs2008、vs2010时提示:error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CStaticLink::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)
解决方法:
找到 UNIT CStaticLink::OnNcHitTest(CPoint point) 将UNIT 改为LRESULT
http://blog.csdn.net/yinxing408033943/article/details/7601698
本文解决了从VC6.0迁移到VS2005/2008/2010时遇到的error C2440错误。具体来说,当出现'static_cast'不能从'UINT(__thiscallCStaticLink::*)(CPoint)'转换为'LRESULT(__thiscallCWnd::*)(CPoint)'的问题时,需要将UNIT修改为LRESULT。

1496

被折叠的 条评论
为什么被折叠?



