定时器的问题 好奇怪
我定义了一个定时器函数,调用如下:
SetTimer(1, 1000, Timer_proc);
VOID CALLBACK Timer_proc(HWND hwnd, UINT message, UINT iTimerID, DWORD dwTime)
{
//其他操作
}
编译时出错,如下:
error C2664: 'SetTimer' : cannot convert parameter 3 from 'void (struct HWND__ *,unsigned int,unsigned int,unsigned long)' to 'void (__stdcall *)(struct HWND__ *,unsigned int,unsigned int,unsigned long)'