您的位置:首页 > 理论基础 > 计算机网络

ON_WM_TIMER() void (__cdecl CtestDlg::* )(UINT)”转换为“void (__cdecl CWnd::* )(UINT_PTR)本文来自: http://ww

2015-07-13 10:33 459 查看
32位转换成64位编译器,编译后出现如下编译错误:
error C2440: 'static_cast' : cannot convert from 'void (__cdecl CFrProgressDlg::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'

出现错误的一行为:

 ON_WM_TIMER()

解决方法:

afx_msg void OnTimer(UINT nIDEvent);

改为
afx_msg void OnTimer(UINT_PTR  nIDEvent);

本文来自: http://www.greensoftcode.net 详细来源请参考:http://www.greensoftcode.net/techntxt/20143139535735036760
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: