不依赖窗口的定时器写法
摘要:
#include <Windows.h>#include <Mmsystem.h>#pragma comment(lib, "Winmm.lib")void WINAPI OnTimeFunc(UINT wTimerID, UINT msg,DWORD dwUser,DWORD dwl,DWORD dw2);int main(int argc, char * argv[]){MMRESULT timer_id;timer_id = timeSetEvent(5000, 1, (LPTIMECALLBACK)OnTimeFunc, DWORD(1), 阅读全文
posted @ 2011-11-04 16:10 BIGSING 阅读(301) 评论(0) 推荐(0) 编辑