MFC也是定时器,不过定时器好像不准新建定时器
SetTimer(1, 60000, NULL);然后响应WM_TIMER消息,得函数
OnTimer(......)

自己写函数
}最后
KillTimer(1);

解决方案 »

  1.   

    method 1:
    UINT m_timer;
    m_timer = SetTimer(1,60000,NULL);...
    KillTimer(m_timer);use classwizzard add:
    WM_TIMER Message...method 2:Sleep(60000);
      

  2.   

    SetTimer(1,60000,NULL);OnTimer()
    {
    i++;
    }
      

  3.   

    SetTimer(1,60000,NULL);出错,
    : error C2501: 'SetTimer' : missing storage-class or type specifiers
    : error C2373: 'SetTimer' : redefinition; different type modifiers
    : error C2078: too many initializers
    Error executing cl.exe.
    怎么回事啊?!各位??
      

  4.   

    行了,可是OnTimer()函数收不到消息?!
      

  5.   

    用GetSystemTime()检查系统时间可以精确定时。