Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: InitDialog in splitter Pin
Richard MacCutchan29-Mar-16 4:23
mveRichard MacCutchan29-Mar-16 4:23 
GeneralRe: InitDialog in splitter Pin
Member 1228273829-Mar-16 7:12
Member 1228273829-Mar-16 7:12 
GeneralRe: InitDialog in splitter Pin
Richard MacCutchan29-Mar-16 7:19
mveRichard MacCutchan29-Mar-16 7:19 
GeneralRe: InitDialog in splitter Pin
Member 1228273829-Mar-16 10:41
Member 1228273829-Mar-16 10:41 
GeneralRe: InitDialog in splitter Pin
David Crow29-Mar-16 14:49
David Crow29-Mar-16 14:49 
GeneralRe: InitDialog in splitter Pin
Victor Nijegorodov30-Mar-16 5:09
Victor Nijegorodov30-Mar-16 5:09 
SuggestionRe: InitDialog in splitter Pin
David Crow29-Mar-16 9:11
David Crow29-Mar-16 9:11 
Questionarduino sensor Pin
Member 1240312128-Mar-16 7:35
Member 1240312128-Mar-16 7:35 
AnswerRe: arduino sensor Pin
David Crow28-Mar-16 9:40
David Crow28-Mar-16 9:40 
AnswerRe: arduino sensor Pin
Richard MacCutchan28-Mar-16 21:44
mveRichard MacCutchan28-Mar-16 21:44 
GeneralRe: arduino sensor Pin
Sascha Lefèvre28-Mar-16 23:31
professionalSascha Lefèvre28-Mar-16 23:31 
GeneralRe: arduino sensor Pin
Member 1240312130-Mar-16 23:19
Member 1240312130-Mar-16 23:19 
GeneralRe: arduino sensor Pin
leon de boer3-Apr-16 6:43
leon de boer3-Apr-16 6:43 
QuestionCOleDateTime Pin
Still learning how to code27-Mar-16 9:48
Still learning how to code27-Mar-16 9:48 
AnswerRe: COleDateTime Pin
Serkan Onat27-Mar-16 12:44
professionalSerkan Onat27-Mar-16 12:44 
GeneralRe: COleDateTime Pin
Still learning how to code27-Mar-16 22:11
Still learning how to code27-Mar-16 22:11 
Hi Serkan,
I thought that originally, but COleDateTime MUST be taking account of DST as the GetHour() function returns the correct value. Thinking about it overnight, I'm beginning to think that I should have applied DST when generating epoch - that would fit the symptoms, wouldn't it ?
(The Arduino works with an unsigned quantity, so it will not be a problem !)

After thought:-
I now believe that the problem is due to taking the DIFFERENCE between Current Time and epoch (I actually got this code off the internet, but didn't do much thinking about it !!!) If DST is applied inherently to all OleDateTime objects, then taking the difference effectively removes any adjustment due to DST, So that would account for it for GetTime() and GetTotalSeconds() being 3600 seconds different !!
Doug


modified 28-Mar-16 5:01am.

GeneralRe: COleDateTime Pin
Jochen Arndt28-Mar-16 1:50
professionalJochen Arndt28-Mar-16 1:50 
GeneralRe: COleDateTime Pin
Still learning how to code28-Mar-16 22:58
Still learning how to code28-Mar-16 22:58 
GeneralRe: COleDateTime Pin
Jochen Arndt28-Mar-16 23:08
professionalJochen Arndt28-Mar-16 23:08 
QuestionOld code Pin
RomTibi27-Mar-16 9:18
RomTibi27-Mar-16 9:18 
AnswerRe: Old code Pin
Patrice T27-Mar-16 10:46
mvePatrice T27-Mar-16 10:46 
AnswerRe: Old code Pin
Sascha Lefèvre27-Mar-16 12:38
professionalSascha Lefèvre27-Mar-16 12:38 
AnswerRe: Old code Pin
David Crow28-Mar-16 3:55
David Crow28-Mar-16 3:55 
SuggestionRe: Old code Pin
Richard MacCutchan28-Mar-16 6:08
mveRichard MacCutchan28-Mar-16 6:08 
AnswerRe: Old code Pin
Richard MacCutchan28-Mar-16 6:03
mveRichard MacCutchan28-Mar-16 6:03 

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.