Link to home
Start Free TrialLog in
Avatar of whluk
whluk

asked on

displaying the real time and date

Could someone supply me some code on how to use the timer object in VC++ to display the real time in a text box?


Avatar of whluk
whluk

ASKER

using timer event preferentially.
I dont code in VC++ but to get the time you could use the windows API, GetLocalTime e GetSystemTime, in the help there should have the information needed to use these functions...
Avatar of whluk

ASKER

And it's very urgent
Avatar of whluk

ASKER

sorry nodari, I don't mean that and I probably leading you to the wrong way...
What I really need is to display a continuous date and time (just like xdaliclock in X windows or more simply the small clock in the corner of win98)
I need it to be constantly adjusting the time to reflect the real one...
sux... ok
goodbye

ASKER CERTIFIED SOLUTION
Avatar of inpras
inpras

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of whluk

ASKER

Sorry inpras... I'm closing this question b/c I've found the answer
the real time is the time on your watch right now. After a few hours later, I will delete this question. Thanks, it's good effort...