cannot convert ON_WM_TIMER() void (__cdecl CtestDlg::* )(UINT)” to“void (__cdecl CWnd::* )(UINT_PTR)
2017-04-26 14:48
1136 查看
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);
void CTestToolDlg::OnTimer(UINT nIDEvent)
改为
afx_msg void OnTimer(UINT_PTR nIDEvent);
void CTestToolDlg::OnTimer(UINT_PTR nIDEvent)
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);
void CTestToolDlg::OnTimer(UINT nIDEvent)
改为
afx_msg void OnTimer(UINT_PTR nIDEvent);
void CTestToolDlg::OnTimer(UINT_PTR nIDEvent)
相关文章推荐
- ON_WM_TIMER() void (__cdecl CtestDlg::* )(UINT)”转换为“void (__cdecl CWnd::* )(UINT_PTR)本文来自: http://ww
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CChatDlg::* )(WPARAM,LPARAM)' to
- Type mismatch: cannot convert from Test to Annotation
- error C2440: '=' : cannot convert from 'void *' to 'float (*)[3]'
- 多线程问题cannot convert parameter 3 from 'unsigned long (void *)' to 'unsigned long (__stdcall *
- error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CchatDlg::* )(CPoint)' to 'UI
- error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'void (__cdecl *)(int,int,int,int)' to 'CvMouseCallback' 的解决
- Type mismatch: cannot convert from Test to Annotation
- 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 C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'void (__cdecl *)(int,int,int,int)' to 'CvMouseCallback' 的解决
- error C2440: '=' : cannot convert from 'void *' to 'mat **'怎么回事阿
- 使用Junit出现Type mismatch: cannot convert from Test to Annotation
- error C2440: ’static_cast’ : cannot convert from ‘UINT (__thiscall CStaticLink::* )(CPoint)’ to ‘LRE
- junit Type mismatch: cannot convert from Test to Annotation
- error C2664: 'RtCreateTimer' : cannot convert parameter 3 from 'int (void *)' to 'void (__stdcall *)(void *)'问题解决办法
- error C2440:cannotconvertfrom 'void (__thiscall CMainFrame::*)'to'LRESULT(__thiscall CWnd::*)
- error C2440: 'static_cast' : cannot convert from 'void (__thiscall CMainFrame::* )(void)' to 'LRESUL