MFC~32位转换成64位编译器~ON

xiaoxiao2021-02-28  22

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
转载请注明原文地址: https://www.6miu.com/read-2149963.html

最新回复(0)