SYSTEMTIME Time;
memset(&Time,0,sizeof(SYSTEMTIME));
Time.wYear=buf[0];
Time.wMonth=buf[1];
Time.wDay=buf[2];
Time.wHour=buf[3];
Time.wMinute=buf[4];
Time.wSecond=buf[5];
m_startTime.SetTime(&Time);
m_startTime.SetFormat(L"yyyy-MM-dd hh:mm:ss"); 我看了下,取到的时间是对的,怎么到了界面上去,就变成了系统的当前时间。
memset(&Time,0,sizeof(SYSTEMTIME));
Time.wYear=buf[0];
Time.wMonth=buf[1];
Time.wDay=buf[2];
Time.wHour=buf[3];
Time.wMinute=buf[4];
Time.wSecond=buf[5];
m_startTime.SetTime(&Time);
m_startTime.SetFormat(L"yyyy-MM-dd hh:mm:ss"); 我看了下,取到的时间是对的,怎么到了界面上去,就变成了系统的当前时间。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货