error C2440 “static_cast” 无法从“void (__thiscall C* )(void)...
来源:互联网 发布:mysql 每天弹出dos 编辑:程序博客网 时间:2024/05/02 01:00
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,通过~
- error C2440 “static_cast” 无法从“void (__thiscall C* )(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 CMainFrame::* )(void)
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(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
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- 如何使用 SetPrinter 修改打印机设置
- 机器学习中相似性度量
- VC++6.0升VS2010常见问题解答
- 兼容浏览器的Servlet下载文件
- spring 3+hibernate4
- error C2440 “static_cast” 无法从“void (__thiscall C* )(void)...
- 批量处理图像
- Gerrit审批权限组设置
- 如何分析CPU的瓶颈和相关操作
- Formatting Date and Time
- 关于唯一约束的处理
- round函数及一条简单查询
- 学习OpenCV——Hog.detectMultiScale的心得
- 关于怎么查看应用链接的方法