|
-
March 4th, 2004, 02:48 AM
#1
Simple... Yes. then why can't i do this
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
-
March 4th, 2004, 02:55 AM
#2
GetSystemTime(LPSYSTIME)
Don't you have any kind of documentation? MSDN is a good starting point for SDK/MFC topics.
-
March 4th, 2004, 03:02 AM
#3
Thanks
Thanks so much
I'll try www.msdn.com
-
March 4th, 2004, 03:18 AM
#4
Re: Thanks
Besides that, it should be available locally in your VC++ IDE - press F1 to see the local MSDN.
-
March 4th, 2004, 06:11 AM
#5
Re: Re: Thanks
Originally posted by gstercken
Besides that, it should be available locally in your VC++ IDE - press F1 to see the local MSDN.
ahh now we see who's still using vc6.0 and the OCT2001 MSDN
-
March 4th, 2004, 06:39 AM
#6
Oct 2001 MSDN
-
March 4th, 2004, 06:48 AM
#7
Originally posted by PadexArt
Oct 2001 MSDN
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...
-
March 4th, 2004, 09:32 AM
#8
GetLocalTime ( ... ) isn't it a bit better?
-
March 4th, 2004, 12:20 PM
#9
Try this:
#include <time.h>
char CurrentTime[9];
char CurrentDate[9];
_strdate(CurrentDate);
_strtime(CurrentTime);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|