NO

Author Topic: Write time within PPC application  (Read 2665 times)

champ

  • Guest
Write time within PPC application
« 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

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Write time within PPC application
« Reply #1 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() ...
/Pelle