在console里面为什么用SetTimer设置成功后没有响应?
在一个函数中有如下语句
UINT_PTR uResult=SetTimer(NULL,NULL,100,CComm::DoTimer);
if(!uResult)printf("failed!\n");
else printf("**:%d\n",uResult);
响应函数定义
void CALLBACK CComm::DoTimer(HWND hwnd, UINT uMsg, UINT idEvent, DWORD dwTime)
{
int nSent;
printf("Hello!\n");
}
运行后函数DoTimer
一直没有运行
请问是怎么回事?