Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a real problem i been facing in release mode Pin
jone201329-Jan-14 21:24
jone201329-Jan-14 21:24 
AnswerRe: a real problem i been facing in release mode Pin
Stefan_Lang9-Jan-14 22:34
Stefan_Lang9-Jan-14 22:34 
GeneralRe: a real problem i been facing in release mode Pin
jone2013210-Jan-14 9:43
jone2013210-Jan-14 9:43 
AnswerRe: a real problem i been facing in release mode Pin
Alan Balkany10-Jan-14 5:21
Alan Balkany10-Jan-14 5:21 
GeneralRe: a real problem i been facing in release mode Pin
jone2013214-Jan-14 7:22
jone2013214-Jan-14 7:22 
AnswerRe: a real problem i been facing in release mode Pin
jschell12-Jan-14 9:00
jschell12-Jan-14 9:00 
GeneralRe: a real problem i been facing in release mode Pin
jone2013214-Jan-14 7:25
jone2013214-Jan-14 7:25 
QuestionFile time issue Pin
_Flaviu7-Jan-14 0:55
_Flaviu7-Jan-14 0:55 
I have 3 files (bitmap files) which has the modified date:

file1.bmp ------- 9/19/2013 01:02 PM
file2.bmp ------- 9/20/2013 07:57 PM
file3.bmp ------- 11/21/2013 10:39 AM

that is what windows explorer show me in XP ... ok, but in Win7, windows explorer show

file1.bmp ------- 9/19/2013 02:02 PM (+1 hour)
file2.bmp ------- 9/20/2013 08:57 PM (+1 hour)
file3.bmp ------- 11/21/2013 10:39 AM

The first two of them has the date before DST (October 2013), and last one after DST (October 2013), but this issue exist only in Win7.


The issue come when I try to get file modified datetime, with follow code:

C++
CFileStatus status;
CFile::GetStatus(sPath, status);

CTime time(status.m_mtime);
TRACE("%d:%d - %s\n", time.GetHour(), time.GetMinute(), sPath);

which show me the modified dates like XP does:
C++
13:2 - file1.bmp
7:57 - file2.bmp
10:39 - file3.bmp

but if I run this code on Win7, I have a problem with first two files: show me modified date less by one hour than windows explorer does (as I said in Win7) .... how can I fix this issue ? Does anyone faced with this kind of problem ?

Thank you.
AnswerRe: File time issue Pin
Richard MacCutchan7-Jan-14 2:53
mveRichard MacCutchan7-Jan-14 2:53 
AnswerRe: File time issue Pin
Jochen Arndt7-Jan-14 3:02
professionalJochen Arndt7-Jan-14 3:02 
GeneralRe: File time issue Pin
_Flaviu7-Jan-14 21:45
_Flaviu7-Jan-14 21:45 
GeneralRe: File time issue Pin
Richard MacCutchan7-Jan-14 22:06
mveRichard MacCutchan7-Jan-14 22:06 
GeneralRe: File time issue Pin
Jochen Arndt7-Jan-14 22:39
professionalJochen Arndt7-Jan-14 22:39 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:14
_Flaviu8-Jan-14 1:14 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 1:33
professionalJochen Arndt8-Jan-14 1:33 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:44
_Flaviu8-Jan-14 1:44 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 2:13
professionalJochen Arndt8-Jan-14 2:13 
GeneralRe: File time issue [solved] Pin
_Flaviu9-Jan-14 2:11
_Flaviu9-Jan-14 2:11 
GeneralRe: File time issue [solved] Pin
Jochen Arndt9-Jan-14 3:30
professionalJochen Arndt9-Jan-14 3:30 
QuestionIncrement and Decrement Operators Pin
tgsb6-Jan-14 20:57
tgsb6-Jan-14 20:57 
AnswerRe: Increment and Decrement Operators PinPopular
Richard MacCutchan6-Jan-14 22:00
mveRichard MacCutchan6-Jan-14 22:00 
GeneralRe: Increment and Decrement Operators Pin
Suk@nta7-Jan-14 0:27
Suk@nta7-Jan-14 0:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 0:35
mveRichard MacCutchan7-Jan-14 0:35 
GeneralRe: Increment and Decrement Operators Pin
Marco Bertschi7-Jan-14 1:27
protectorMarco Bertschi7-Jan-14 1:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 2:48
mveRichard MacCutchan7-Jan-14 2:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.