error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)
来源:互联网 发布:机房建设 网络拓扑图 编辑:程序博客网 时间:2024/05/07 05:49
1、VC6中,说可以把函数在头文件中定义为:
afx_msg void OnProgress()这样 但是在VS2005及以上,要求很严格,必须函数返回值为LRESULT类型,所以在VS2005及以上,需要修改为
LRESULT afx_msg OnProgress(WPARAM, LPARAM);
其中,后面两个参数不管用不用得上,都要写。
2、添加消息映射没差别
3、自己写的函数原型如下:
LRESULT CMainFrame::OnProgress(WPARAM wParam,LPARAM lParam) { return TRUE; //注意要返回一个TRUE! }
OK Rebuild,通过~
转至http://www.cnblogs.com/52yixin/articles/2120526.html
0 0
- error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)
- error C2440: “static_cast” : 无法从“void (__thiscall CMainFrame::* ) (NMTOOLBARA *,LRESULT *)”转换为“void
- vs2008 error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)”转换为“LRESULT (__thiscal
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)...
- error C2440 “static_cast” 无法从“void (__thiscall C* )(void)...
- error C2440 “static_cast” 无法从“void (__thiscall C* )(void)...
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)...
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)...
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)...
- error C2440 “static_cast” 无法从“void (__thiscall C* )(void)...
- error C2440: “static_cast”: 无法从“void (__thiscall xxxxxx::* )(LON
- 错误 4 error C2440: “static_cast”: 无法从“void (__thiscall HelloWorld::*
- 错误 1 error C2440: “static_cast”: 无法从“void (__thiscall ClientDlg::* )
- error C2440: “static_cast”: 无法从“void (__thiscall CChat
- 错误 1 error C2440: “static_cast”: 无法从“void (__thiscall ClientDlg::* )
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARAM,LPARAM)”
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARA
- mybatis写mapper文件注意事项
- 什么是号码-今晚号码公开
- 第十章 数据结构的效率
- 控制反转和依赖注入
- 145期挂牌规律145期挂牌六肖
- error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)
- Android中scrollview与webview冲突事件,viewpager同理!!!
- Nginx配置文件详细说明
- 实验四
- bash:gcc:command not found
- android对View控件截图并保存
- 145期一碼中特-145期免费公开-六盒彩12肖
- GET和POST有什么区别?及为什么网上的多数答案都是错的。
- 香港145期一碼中特