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?

Who is Participating?
inprasConnect With a Mentor Commented:
What is real time?
whlukAuthor Commented:
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...
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

whlukAuthor Commented:
And it's very urgent
whlukAuthor Commented:
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

whlukAuthor Commented:
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...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.