mktime timecore.cpp 40 ctime

来源:互联网 发布:linux更改root密码 编辑:程序博客网 时间:2024/05/13 08:54

 VC6 dlg 工程      m_time 类型是  CDateTimeCtrl

int nyear= 2099;

    int  nmonth=12;
    int  nday=31;


    COleDateTime tDj3(nyear,nmonth,nday,0,0,0);

    m_time.SetTime(tDj3);


可以正常运行

VC6

int nyear= 2099;

    int  nmonth=12;
    int  nday=31;


    CTime tDj3(nyear,nmonth,nday,0,0,0);

    m_time.SetTime(tDj3);

mktime timecore.cpp 40  ctime 报错,跟踪后,mktime -1 由于没有mktime的代码无法跟踪,

这个代码在VS2008上正常运行。


原创粉丝点击