error C2440: 'static_cast' LRESULT LRESULT错误
来源:互联网 发布:淘宝店铺售假怎么申诉 编辑:程序博客网 时间:2024/05/02 01:29
这是以前在网上搜到得一段对话
问1:为什么编译的时候在消息映射那里出错了:
error C2440: “static_cast”: 无法从“void (__thiscall CMainFrame::* )(void)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)” 在匹配目标类型的范围内没有具有该名称的函数
答:There is a bug in 6.0 compiler that permits you to use afx_msg void OnProgress();. You need to change your function to LRESULT OnProgress(WPARAM,LPARAM).
问2:为什么MFC在其他的消息或者事件响应里面却能这样写呢?它不也都是用的void来申明的?
答:Some message handler functions such as the wizard generated WM_CREATE handler are virtual functions derived from default MFC implementations. Check out MFC source code to see how MFC handle these messages.
It is safe if you don't use the result and the parameter of the message at all.
- error C2440: 'static_cast' LRESULT LRESULT错误
- error C2440: 'static_cast' LRESULT LRESULT错误
- error C2440: 'static_cast' LRESULT LRESULT错误
- error C2440: ‘static_cast‘ LRESULT LRESULT错误
- error C2440: 'static_cast' LRESULT LRESULT错误
- error C2440: “static_cast”: 无法从“void (__thiscall CXXDlg* )(void)”转换为“LRESULT (__thiscall CWnd:的错误
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall MenuToolBar::* )(LPARAM,LRESULT *)' to 'void (__thiscall CCmd
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall MenuToolBar::* )(LPARAM,LRESULT *)' to 'void (__thiscall CCmd
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARAM,LPARAM)”
- error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CchatDlg::* )(CPoint)' to 'UI
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__t
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall CWnd )(WPARA
- error C2440: “static_cast”: 无法从“UINT (__thiscall CXXX::* )(CPoint)”转换为“LRESULT (__thiscall CWnd::* )
- error C2440: “static_cast”: 无法从“void (__thiscall CTransparentWnd::* )(WPARAM,LPARAM)”转换为“LRESULT (__
- error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CchatDlg::* )(CPoint)' to 'UI
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thisca
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)”转换为“LRESULT (__thiscall
- dede所有目录模板全解
- Iphone 官方的开发指南
- ACM最长单调递增子序列问题(动态规划)o(n*n)C++实现
- BCGControlBar支持中文的问题
- enter键提交
- error C2440: 'static_cast' LRESULT LRESULT错误
- MySQL数据导入与导出
- 设置按钮背景图片(HTML-CSS)
- struts2的namespace
- error C4430: 缺少类型说明符 - 假定为 int
- Spring中Property及Quartz的相关配置
- 实例统计哪些人会购买共享软件?
- CSS标准化公共部分代码片段
- 1039 Easier Done Than Said?