//回調函數
void CALLBACK TimerProc(HWND hWnd,UINT nMsg,UINT nIDEvent,DWORD dwTime){
CTime time=CTime::GetCurrentTime();
CString str=time.Format("%H:%M:%S");
m_Time.SetWindowText(str);
}
//SetTimer函數調用
CWnd::SetTimer(1,1000,TimerProc);
編譯出錯,錯誤信息如下:
C:\Documents and Settings\ttc\桌面\C_workplace\System_Time\System_TimeDlg.cpp(164) : error C2664: 'SetTimer' : cannot convert parameter 3 from 'void (struct HWND__ *,unsigned int,unsigned int,unsigned long)' to 'void (__stdcall *)(struct HWND__ *,un
signed int,unsigned int,unsigned long)'
None of the functions with this name in scope match the target type
這是為什么???
期待高手解決!
posted on 2009-07-31 10:54
人生在于攀登! 閱讀(740)
評論(3) 編輯 收藏 引用