Hi,
how do you get the time and date of your computer.
i want to write a log file of errors with the time and date it happened. all works except the time and date
thanks.
darian
Printable View
Hi,
how do you get the time and date of your computer.
i want to write a log file of errors with the time and date it happened. all works except the time and date
thanks.
darian
GetSystemTime(LPSYSTIME)
Don't you have any kind of documentation? MSDN is a good starting point for SDK/MFC topics.
Thanks so much
I'll try www.msdn.com
Besides that, it should be available locally in your VC++ IDE - press F1 to see the local MSDN.Quote:
ahh now we see who's still using vc6.0 and the OCT2001 MSDNQuote:
Originally posted by gstercken
Besides that, it should be available locally in your VC++ IDE - press F1 to see the local MSDN.
Oct 2001 MSDN :thumb:
who else says "that just pissed me off" after installing the Jan2002 MSDN and having to go back and fix all the registry settings to get our beloved f-1 back....hey MS...how about coding it up so f-1 works with > MSDN oct2001...ain't that hard...you know we likes to run the help outside of the vc...Quote:
Originally posted by PadexArt
Oct 2001 MSDN :thumb:
GetLocalTime ( ... ) isn't it a bit better?
Try this:
#include <time.h>
char CurrentTime[9];
char CurrentDate[9];
_strdate(CurrentDate);
_strtime(CurrentTime);