Re: SYSTEMTIME and Conversion
- From: Kerstin Pirrung <pirrung@xxxxxxxxx>
- Date: Fri, 29 Jul 2005 01:15:24 -0700
"=?Utf-8?B?U2ltZXM=?=" <Simes@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:037131C0-FFF0-4515-B84F-156F5E3A9183@xxxxxxxxxxxxx:
> 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
Haven't all of us already had this problem?
I'm doing
GetDateFormat(NULL, NULL, p_stTime, (LPCTSTR) csDateformat, tcDatHelp,40);
with
SYSTEMTIME * p_stTime;
TCHAR * tcDatHelp = (TCHAR*)LocalAlloc(LPTR, 40);
CString csDateformat = _T("dd'.'MM'.'yyyy");
Kerstin
.
- Follow-Ups:
- Re: SYSTEMTIME and Conversion
- From: Simes
- Re: SYSTEMTIME and Conversion
- References:
- SYSTEMTIME and Conversion
- From: Simes
- SYSTEMTIME and Conversion
- Prev by Date: Re: SYSTEMTIME and Conversion
- Next by Date: Re: Should I use CPropertyPage::OnInitDialog() or CPropertyPage::OnCreate() ???
- Previous by thread: Re: SYSTEMTIME and Conversion
- Next by thread: Re: SYSTEMTIME and Conversion
- Index(es):
Relevant Pages
|