SYSTEMTIME?这是不建议直接加减的 看MSDN说明Res It is not recommended that you add and subtract values from this structure to obtain relative times. The following list shows tasks to perform instead: Convert the SYSTEMTIME structure to a FILETIME structure. Copy the resulting FILETIME structure to a ULARGE_INTEGER structure. Use usual 64-bit arithmetic on the ULARGE_INTEGER value
看MSDN说明Res
It is not recommended that you add and subtract values from this structure to obtain relative times. The following list shows tasks to perform instead: Convert the SYSTEMTIME structure to a FILETIME structure.
Copy the resulting FILETIME structure to a ULARGE_INTEGER structure.
Use usual 64-bit arithmetic on the ULARGE_INTEGER value
没注意看,呵呵,那就用CTime 或者time_t等类型吧,如果非要用SYSTEMTIME类型那就 按3、4楼说的做。
FILETIME 之间怎么计算
FILETIME 是个结构体!
DWORD dwLowDateTime;
DWORD dwHighDateTime;
} FILETIME, FAR *LPFILETIME;
这样就该明白了吧~