Clock using C++ & DirectX
I'm trying to do a clock using the DirectX & C++.
So I wrote quite everything but now I have a BIG problem, I have to use the system time and apply the hour to the hour hand on the clock and the same for the minute hand.
I have created a function called SetValue(int valueH, int valueM) that calculates and sets the position on the clock of the hands, but I don't know how can I get the system time.
Here my control (part of a code):
By now che hands rotate, but not using the system time!
static int minute = 0;
static int hour = 1;
if (minute > 59)
if (hour > 11)
hour = 0;
minute = 0;
for (i = 0; i < Clock; i++)
Please help me!! :( :(
Last edited by Arkanops; 04-14-2006 at 10:18 AM.
CTime timeNow = CTime::GetCurrentTime();
string nowStr = timeNow.Format("%Y-%m-%d_%H:%M:%S");
Last edited by Arkanops; 04-14-2006 at 10:59 AM.
By system.drawing in forum VB Classic
Last Post: 08-04-2005, 12:50 AM
By Al Rest in forum vb.announcements
Last Post: 06-10-2002, 04:19 AM
Last Post: 10-19-2001, 01:43 AM
By patrickho in forum Java
Last Post: 08-12-2000, 01:34 PM
By zainorin in forum Java
Last Post: 08-01-2000, 10:31 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center