vs2008 error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)”转换为“LRESULT (__thiscal
头文件MainFrm.h:define UM_PROGRESS WM_USER+1 //定义消息afx_msg void OnProgress(); // 生成的消息映射函数
源文件MainFrm.cpp:
//消息映射
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
ON_MESSAGE(UM_PROGRESS,&CMainFrame::OnProgres
转载
2015-06-27 21:57:15 ·
435 阅读 ·
0 评论