您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐