#include <stdio.h>
#include <windows.h>
void CALLBACK timer(HWND hwnd, UINT uMsg,UINT idEvent,DWORD dwTime)
{
printf("hello!/n");
return;
}
void main()
{
MSG msg;
int send = SetTimer(NULL, 0, 1000, (TIMERPROC)timer);
GetMessage (&msg, NULL, 0, 0);
TranslateMessage(&msg);
DispatchMessage(&msg);
KillTimer(NULL, send);
}
C++定时
最新推荐文章于 2021-08-01 01:38:38 发布