error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTrunkPage::* )(void)' to 'void (__thiscall CCmdTarget::* )(N
来源:互联网 发布:神舟linux系统重装变小 编辑:程序博客网 时间:2024/05/17 03:30
xp sp3
vs 2005 sp1 英文版
错误:error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTrunkPage::* )(void)' to 'void (__thiscall CCmdTarget::* )(NMHDR *,LRESULT *)'
2> None of the functions with this name in scope match the target type
用custom control 自定义类时,向其主窗口发送notify消息时的错误。
解决办法:把出错的函数参数类型都改为(NMHDR * nmhdr, LRESULT * lresult)即可。
参考资料:
Custom Control的使用
http://old.blog.edu.cn/user1/3527/archives/2007/1804664.shtml
error C2440: 'static_cast' LRESULT LRESULT错误
http://hi.baidu.com/wuxiaoming1733/blog/item/6fc3df09e68dcc8ad1581b93.html
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTrunkPage::* )(void)' to 'void (__thiscall CCmdTarget::* )(N
- 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: 'type cast' : cannot convert from 'int *' to 'void (__thiscall CCmdTarget::*)(void)'解决
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESUL
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESUL
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESUL
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESU
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESUL
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTCP服务器程序Dlg::* )(WPARAM,LPARAM)'
- error C2440: ‘static_cast’ : cannot convert from ‘void (__thiscall CSettingStart::* )(BOOL,HANDLE)’
- VS2010 error C2440: 'static_cast' : cannot convert from 'void (__thiscall CKeyexeDlg::* )(WPARAM,LP
- error C2440: “static_cast”: 无法从“void (__thiscall CVCadView::* )(int)”转换为“void (__thiscall CCmdTarget
- error C2440 “static_cast” 无法从“void (__thiscall CPppView )(void)...
- Hyper-V实战之多个Windows 2008安装
- 关于forward和redirect的区别
- 在Java中产生随机数的两个方法
- ajax指定为post但是未设置content-type时如何获取提交的内容
- Adobe Flex 编码规范
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTrunkPage::* )(void)' to 'void (__thiscall CCmdTarget::* )(N
- Pyke 简介 (4) :Pyke 是什么?
- 文件上传 带进度条(多种风格)
- GL中的累计组、汇总帐户和帐户查询的关系
- 给类变量提供初始值的方法
- 基于Struts的第一个项目
- 简单的telnet(带详解)
- 源码参考网址,对初学者很有用哦
- C#题