查看单个帖子
旧 2007-04-08, 08:12 PM   #1
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 使用CTIME在Realease版调试中的错误

ATLTIME_INLINE BOOL WINAPI CTime::IsValidFILETIME(const FILETIME& fileTime) throw()
{
FILETIME localTime;
if (!FileTimeToLocalFileTime(&fileTime, &localTime))
{
return FALSE;
}

// then convert that time to system time
SYSTEMTIME sysTime;
if (!FileTimeToSystemTime(&localTime, &sysTime))
{
return FALSE;
}

return TRUE;
}
huangyhg离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)