SYSTEMTIME and Conversion

Tech-Archive recommends: Fix windows errors by optimizing your registry



I'm attempting to read the current time then convert it to be used in
DrawText. Now, the Hour and Time are WORDS in the SYSTEMTIME structure and
DrawText uses a TCHAR array. Coersing to TCHAR won't work as it's converting
to an array type and char coersing won't work either as the hour and minutes
can have 2 characters.

Any ideas gratefully appreciated!

TIA

Si
.



Relevant Pages

  • Re: SYSTEMTIME and Conversion
    ... the Hour and Time are WORDS in the SYSTEMTIME structure and ... >DrawText uses a TCHAR array. ... >to an array type and char coersing won't work either as the hour and minutes ... SYSTEMTIME sTime; ...
    (microsoft.public.pocketpc.developer)
  • Re: SYSTEMTIME and Conversion
    ... > DrawText uses a TCHAR array. ... > to an array type and char coersing won't work either as the hour and ... GetDateFormat and GetTimeFormat (they both accept a pointer to a SYSTEMTIME) ...
    (microsoft.public.pocketpc.developer)
  • Re: SYSTEMTIME and Conversion
    ... the Hour and Time are WORDS in the SYSTEMTIME structure ... > and DrawText uses a TCHAR array. ... > converting to an array type and char coersing won't work either as the ...
    (microsoft.public.pocketpc.developer)