在程序中初次使用MMTimer,但是不成功,不太明白遇到的问题,请帮忙指点一下:我的代码如下:timersdlg.h文件CTimerDlg类定义中加入了:void MMTimerHandler(UINT nIDEvent);
static void CALLBACK  TimerFunction(UINT wTimerID, UINT msg, DWORD dwUser, DWORD dw1, DWORD dw2); .cpp文件中加入了:static void CTimersDlg::OnButtonBegin() 
{
   // Set resolution to the minimum supported by the system
    TIMECAPS tc;
    timeGetDevCaps(&tc, sizeof(TIMECAPS));
    DWORD resolution = min(max(tc.wPeriodMin, 0), tc.wPeriodMax);
    timeBeginPeriod(resolution);         // create the timer
    m_idEvent = timeSetEvent(
        m_elTime,            
        resolution,         
        TimerFunction,      
        (DWORD)this,                  
        TIME_PERIODIC);                
}
void CTimersDlg::OnButtonStop() 
{
    // destroy the timer
    timeKillEvent(m_idEvent);
    
    // reset the timer
    timeEndPeriod (m_elTime);}void CTimersDlg::MMTimerHandler(UINT nIDEvent) // called every elTime milliseconds
{
  myTimeProc();
}void CALLBACK TimerFunction(UINT wTimerID, UINT msg, 
    DWORD dwUser, DWORD dw1, DWORD dw2) 
    {
    // This is used only to call MMTimerHandler
    // Typically, this function is static member of CTimersDlg
    CTimersDlg* obj = (CTimersDlg*) dwUser;
    obj->MMTimerHandler(wTimerID);
    } 但是编译时提示错误:error LNK2001: unresolved external symbol __imp__timeSetEvent@20
CTimersDlg.obj : error LNK2001: unresolved external symbol "public: static void __stdcall CTimersDlg::TimerFunction(unsigned int,unsigned int,unsigned long,unsigned long,unsigned long)" (?TimerFunction@CTimersDlg@@SGXIIK
KK@Z)
CTimersDlg.obj : error LNK2001: unresolved external symbol __imp__timeBeginPeriod@4
CTimersDlg.obj : error LNK2001: unresolved external symbol __imp__timeGetDevCaps@8
CTimersDlg.obj : error LNK2001: unresolved external symbol __imp__timeKillEvent@4
Debug/CTimersDlg.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.到底该怎么使用啊?哪位能帮帮我啊?多谢了