如何修改System时间?
是用CTime吗?
哪位有关于CTime完整的描述吗?

解决方案 »

  1.   

    The SetLocalTime function sets the current local time and date. BOOL SetLocalTime(
      CONST SYSTEMTIME *lpSystemTime   // address of local time to set
    );
     
      

  2.   

    用SetTime就可以,具体的请到MSDN中查询!!!
      

  3.   

    可以使用CTime,不过我更喜欢用以下方法:
    SYSTEMTIME systime;
    GetLocalTime(&systime);    //获得系统时间
    SetLocalTime(&systime);    //设置系统时间
    'systime是一个时间结构,设置前要先给他的成员赋值
    如:
    systime.Year = 2002
    systime.Month = 12
    systime.Day = 23
    systime.Hour = 10
    ...