static const char* days[] = { "MON", "THU", "WED", "THR", "FRI" }; dc.DrawText( (days[i-1], 3, rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE );
childview.cpp(194): error C2664: 'int CDC::DrawTextW(LPCTSTR,int,LPRECT,UINT)' : cannot convert parameter 1 from 'const char *' to 'LPCTSTR'
_t
LPCTSTR
TCHAR
char
static const char* days[] = { "MON", "THU", "WED", "THR", "FRI" }; dc.DrawText( (_T(days[i-1]), 3, rect, DT_CENTER | DT_VCENTER | DT_SINGLELINE );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)