编译问题(类型转换)
ydogg 2001-12-29 10:19:39 int ntimer = ::SetTimer(NULL,m_ntimer,m_ltimertime,(TIMERPROC)OnTimer);
error C2440: 'type cast' : cannot convert from '' to 'void (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,unsigned long)'
偶的目的是把一个类成员函数作为SetTimer的回调函数,编译出现该错误。
将OnTimer改为static可以通过,但是偶的OnTimer不能为静态。
如何解决?盼赐教。