ON_WM_TIMER()在编译器从32位转换为64位的时候, 出现的问题;

class CFlatComboBox : public CComboBox   (基类为CWnd)
为了重载CWnd的函数:OnTimer(UINT nIDEvent)
需要在MASSEGE_MAP()加入: ON_WM_TIMER()

然后再CFlatComboBox 中加入相应函数:
afx_msg void OnTimer(UINT nIDEvent);

此时切换到win64就会出错: void (__cdecl xx::* )(UINT)”转换为“void (__cdecl CWnd::* )(UINT_PTR)

这里改为: 
afx_msg void OnTimer(UINT_PTR nIDEvent); 

即可;





相关文章:

  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
猜你喜欢
  • 2022-12-23
  • 2021-09-20
  • 2021-07-14
  • 2022-12-23
  • 2021-10-02
  • 2021-04-30
  • 2022-12-23
相关资源
相似解决方案