vc6.0转vs2017:error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(WPARAM,LPARAM)...
错误信息: error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(WPARAM,LPARAM)转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)” 说明: 从vs2005之后,对消息的检查较为严格,所以都会出现此错误,不仅仅是2017 解决办法: 改变返回类型即可:void--->...
转载
2021-08-20 11:33:51 ·
369 阅读 ·
0 评论