Roselina
03-12-2002, 06:20 AM
Hi, I`d like to display time in a static text control with the simplest way. Could you show me the way? Thanks so much!
Regards,
Regards,
Displaying Time (Newbie)Roselina 03-12-2002, 06:20 AM Hi, I`d like to display time in a static text control with the simplest way. Could you show me the way? Thanks so much! Regards, Keltus 03-12-2002, 02:40 PM get the time using time() in <ctime> use SetDlgItemText to put the time in there might be a windows API call to get the time but I'm not sure wizxzard 03-19-2002, 09:57 AM cout<<__DATE__<<endl; cout<<__TIME__<<endl; doubt this is what you needed but good to know i always wanted to know this when i was a neewbie. ps the time will only display the actual time tha the program was executed.:D :p :o Keltus 03-19-2002, 02:41 PM cout<<__DATE__<<endl; cout<<__TIME__<<endl; doubt this is what you needed but good to know i always wanted to know this when i was a neewbie. ps the time will only display the actual time tha the program was executed. actually, it will only display the time and date that the program was compiled, not executed. wizxzard 03-20-2002, 03:16 AM This is true i found that out, i have found a program that shows a continious clock on the screen but am yet to test this, as for the date your right that laso only has the compiling date, but for college newbies that code should be ok for a while. P.s if any one can find a simple date code like mine but shows the every day date not just the compiling date please let be know.wizxzard@hotmail.com:D :p :o Keltus 03-20-2002, 03:51 PM yes, you can use _strdate() for dates, and _strtime for times |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum