MFC~32位转换成64位编译器~ON_WM_TIMER()~ 错误~

来源:互联网 发布:u盘引导盘制作工具mac 编辑:程序博客网 时间:2024/04/29 23:04



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
原创粉丝点击