COleDateTime::GetCurrentTime
static COleDateTime PASCAL GetCurrentTime( );ResCall this static member function to return the current date/time value.------------------------------------------------------------------------
CTime::GetCurrentTime 
static CTime PASCAL GetCurrentTime( );ResReturns a CTime object that represents the current time.
------------------------------------------------------------------------
timeGetTime
The timeGetTime function retrieves the system time, in milliseconds. The system time is the time elapsed since Windows was started.DWORD timeGetTime(VOID); 
Parameters
This function does not take parameters.Return Values
Returns the system time, in milliseconds.

解决方案 »

  1.   

    GetCurrentTime就不用说了吧,它返回的是一个当前系统的时间.非UTC表示的.The timeGetTime function retrieves the system time, in milliseconds. The system time is the time elapsed since Windows was started.
    timeGetTime 返回的是系统从开机启动后到现在的时间,以ms形式表示.timeGetSystemTime同上,只不过是以MMTIME 结构来表示的.
    它们与GetCurrentTime是两个不同的时间.typedef struct mmtime_tag { 
        UINT wType; 
        union { 
            DWORD ms; 
            DWORD sample; 
            DWORD cb; 
            DWORD ticks; 
            struct { 
                BYTE hour; 
                BYTE min; 
                BYTE sec; 
                BYTE frame; 
                BYTE fps; 
                BYTE dummy; 
                BYTE pad[2] 
            } smpte; 
            struct { 
                DWORD songptrpos; 
            } midi; 
        } u; 
    } MMTIME;
      

  2.   

    GetCurrentTime返回的是当前系统的时间.timeGetTime 返回的是系统从开机启动后到现在的时间
      

  3.   

    改变IDC_STATIC的显示内容,需要利用SetWindowText,具体先找到IDC_STATIC的Handle,如GetDlgHandle等
      

  4.   

    GetCurrentTime是通用的获取时间,兼容16位windows, 要求windows.h头文件,在kernel32.dll中实现(是访问注册表得到的时间).timeGetTime 多用在多媒体编程中,可以得到比较精确的时间计数。要求mmsystem.h头文件和winmm.lib库文件。
      

  5.   

    timeGetTime 返回的是系统从开机启动后到现在的时间不明白,是不是指从开机到现在的时间差值?比方说开时间是:2007_08_27 22:10
    经历了30秒后的现在时间是:2007_08_27 22:40
    那么,这个timeGetTime得到的是不是30秒?