Click here to Skip to main content
15,901,853 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get Default shell command Pin
vikrant kpr13-Jul-09 1:24
vikrant kpr13-Jul-09 1:24 
QuestionShellExecute function? Pin
dipuks11-Jul-09 5:54
dipuks11-Jul-09 5:54 
AnswerRe: ShellExecute function? Pin
Stuart Dootson11-Jul-09 6:06
professionalStuart Dootson11-Jul-09 6:06 
QuestionMFC Exceptions Pin
rrrado11-Jul-09 5:22
rrrado11-Jul-09 5:22 
AnswerRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 5:36
professionalStuart Dootson11-Jul-09 5:36 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 6:23
rrrado11-Jul-09 6:23 
GeneralRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 7:20
professionalStuart Dootson11-Jul-09 7:20 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 8:05
rrrado11-Jul-09 8:05 
GeneralRe: MFC Exceptions Pin
rrrado11-Jul-09 9:34
rrrado11-Jul-09 9:34 
GeneralRe: MFC Exceptions Pin
Stuart Dootson11-Jul-09 9:43
professionalStuart Dootson11-Jul-09 9:43 
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 

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.