Pelles C forum

C language => Beginner questions => Topic started by: champ on January 08, 2008, 10:45:58 PM

Title: Write time within PPC application
Post by: champ on January 08, 2008, 10:45:58 PM
Hello,

I am trying to output the time using the ExtTextOut function. How do I get the time information? How do I have to convert the information to write it out using ExtTextOut?

Best regards

Martin
Title: Re: Write time within PPC application
Post by: Pelle on January 09, 2008, 10:22:46 AM
GetSystemTime() or GetLocalTime() to get the time, and then wsprintf() ( or possibly GetTimeFormat() depending on OS version ) to format the time to a buffer, which may then be used with output functions like ExtTextOut() ...