error C2440: 'static_cast' : cannot convert from 'void (__thiscall CTrunkPage::* )(void)' to 'void (__thiscall CCmdTarget::* )(N
2010-03-02 10:37
591 查看
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
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 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' : 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 CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESU
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CchatDlg::* )(CPoint)' to 'UI
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESUL
- error C2440:cannotconvertfrom 'void (__thiscall CMainFrame::*)'to'LRESULT(__thiscall CWnd::*)
- error C2440: 'type cast' : cannot convert from 'int *' to 'void (__thiscall CCmdTarget::*)(void)'解决
- 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 'LRESULT (__thiscall CchatDlg::* )(CPoint)' to 'UI
- error C2440: ’static_cast’ : cannot convert from ‘UINT (__thiscall CStaticLink::* )(CPoint)’ to ‘LRE
- error C2440: ‘static_cast’ : cannot convert from ‘void (__thiscall CSettingStart::* )(BOOL,HANDLE)’
- error C2440: ‘static_cast’ : cannot convert from ‘HRESULT (__thiscall CtestpalView::* )(WPARAM,LPARA
- error C2440: “static_cast”: 无法从“void (__thiscall CVCadView::* )(int)”转换为“void (__thiscall CCmdTarget
- error C2440 static_cast:cannot convert from void (_thiscall X::*)(WPARAM,LPARAM)to LRESULT(_thiscall