unsigned int wAccuracy; //定义分辨率。 int TimerID; //定时器的句柄。
#include <mmsystem.h>//包含所用系统函数的头文件。
if(timeGetDevCaps(&tc, sizeof(TIMECAPS)) == TIMERR_NOERROR) ////启动定时器。
unsigned int wAccuracy; //定义分辨率。 int TimerID; //定时器的句柄。
#include <mmsystem.h>//包含所用系统函数的头文件。
if(timeGetDevCaps(&tc, sizeof(TIMECAPS)) == TIMERR_NOERROR) ////启动定时器。