vc6.0转vs2017:error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(WPARAM,LPARAM)...
错误信息:errorC2440:“static_cast”:无法从“void(__thiscallCMainFrame::*)(WPARAM,LPARAM)转换为“LRESULT(__thiscallCWnd::*)(WPARAM,LPARAM)”说明:从vs2005之后,对消息的检查较为严格,所以都会出现此错误,不仅仅是2017解决办法:改变返回类型即可:void--->LRESULT,由于返回