Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 10:02
professionalStuart Dootson11-Jul-09 10:02 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 19:31
rrrado11-Jul-09 19:31 
QuestionRegarding Created Date Pin
kirankatta11-Jul-09 4:48
kirankatta11-Jul-09 4:48 
AnswerRe: Regarding Created Date Pin
Pardhu_M11-Jul-09 5:23
Pardhu_M11-Jul-09 5:23 
QuestionCoversion of SYSTEMTIME TO FILETIME Pin
Pardhu_M11-Jul-09 2:26
Pardhu_M11-Jul-09 2:26 
AnswerRe: Coversion of SYSTEMTIME TO FILETIME Pin
Stuart Dootson11-Jul-09 2:57
professionalStuart Dootson11-Jul-09 2:57 
GeneralRe: Coversion of SYSTEMTIME TO FILETIME Pin
Pardhu_M11-Jul-09 3:39
Pardhu_M11-Jul-09 3:39 
GeneralRe: Coversion of SYSTEMTIME TO FILETIME Pin
Stuart Dootson11-Jul-09 3:59
professionalStuart Dootson11-Jul-09 3:59 
What timezone are you in? Is it possibly India, which is 5 hours 30 minutes ahead of GMT?

That's where the delta's coming in, I would suggest. You need to learn the difference between UTC times (which is how FILETIMEs are interpreted) and local times. There are functions that can help you convert between local and UTC times, but FILETIMEs are always interpreted as UTC.

[edit]The reason you see the conversion to FILETIME as adding 5.5 hours is that when you see the presentation of the filetime, it's through a function that applies a timezone offset (GMT -> India), adding 5.5 hours.

What you need is to use TzSpecificLocalTimeToSystemTime[^] to convert your original, local SYSTEMTIME to a UTC SYSTEMTIME. Then use SystemTimeToFileTime to convert the UTC SYSTEMTIME to a FILETIME.[/edit]

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Coversion of SYSTEMTIME TO FILETIME Pin
Pardhu_M11-Jul-09 5:19
Pardhu_M11-Jul-09 5:19 
QuestionClipboard [modified] Pin
samira forooghi11-Jul-09 1:42
samira forooghi11-Jul-09 1:42 
QuestionHow to Get the path of Internet Explorer using C++ Pin
tns_ranjith11-Jul-09 0:20
tns_ranjith11-Jul-09 0:20 
AnswerRe: How to Get the path of Internet Explorer using C++ Pin
Stuart Dootson11-Jul-09 1:00
professionalStuart Dootson11-Jul-09 1:00 
GeneralRe: How to Get the path of Internet Explorer using C++ Pin
tns_ranjith11-Jul-09 1:13
tns_ranjith11-Jul-09 1:13 
GeneralRe: How to Get the path of Internet Explorer using C++ Pin
Stuart Dootson11-Jul-09 1:19
professionalStuart Dootson11-Jul-09 1:19 
AnswerRe: How to Get the path of Internet Explorer using C++ Pin
David Crow11-Jul-09 15:54
David Crow11-Jul-09 15:54 
QuestionData population Pin
Chiman110-Jul-09 20:21
Chiman110-Jul-09 20:21 
AnswerRe: Data population Pin
Rajesh R Subramanian10-Jul-09 22:07
professionalRajesh R Subramanian10-Jul-09 22:07 
QuestionVector elements and the heap...or the stack... Pin
Mike the Red10-Jul-09 14:16
Mike the Red10-Jul-09 14:16 
AnswerRe: Vector elements and the heap...or the stack... Pin
«_Superman_»10-Jul-09 16:06
professional«_Superman_»10-Jul-09 16:06 
AnswerRe: Vector elements and the heap...or the stack... Pin
Stuart Dootson10-Jul-09 23:10
professionalStuart Dootson10-Jul-09 23:10 
GeneralRe: Vector elements and the heap...or the stack... Pin
Mike the Red11-Jul-09 8:53
Mike the Red11-Jul-09 8:53 
GeneralRe: Vector elements and the heap...or the stack... Pin
Stuart Dootson11-Jul-09 8:56
professionalStuart Dootson11-Jul-09 8:56 
QuestionDialogBox function Pin
dipuks10-Jul-09 12:36
dipuks10-Jul-09 12:36 
AnswerRe: DialogBox function Pin
«_Superman_»10-Jul-09 15:59
professional«_Superman_»10-Jul-09 15:59 
QuestionToolbar-like custom draw buttons Pin
tiresias210-Jul-09 10:00
tiresias210-Jul-09 10:00 

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.