Dody
September 16th, 2006, 02:57 PM
I have kinda problem with my following code:
WIN32_FILE_ATTRIBUTE_DATA data;
GET_FILEEX_INFO_LEVELS fInfoLevelId = GetFileExInfoStandard;
GetFileAttributesEx("C:\\afile.txt", fInfoLevelId, &data);
SYSTEMTIME times, stLocal;
FileTimeToSystemTime(&data.ftLastAccessTime, ×);
SystemTimeToTzSpecificLocalTime(NULL, ×, &stLocal);
CString tim;
tim.Format("%02d", stLocal);
MessageBox(tim);
anyone can see why it is not showing the correct local time?
thanks in advance!
WIN32_FILE_ATTRIBUTE_DATA data;
GET_FILEEX_INFO_LEVELS fInfoLevelId = GetFileExInfoStandard;
GetFileAttributesEx("C:\\afile.txt", fInfoLevelId, &data);
SYSTEMTIME times, stLocal;
FileTimeToSystemTime(&data.ftLastAccessTime, ×);
SystemTimeToTzSpecificLocalTime(NULL, ×, &stLocal);
CString tim;
tim.Format("%02d", stLocal);
MessageBox(tim);
anyone can see why it is not showing the correct local time?
thanks in advance!