O
Onega
Hi
I create a simple win32 project (VC2003, windows2003(English) ,
and do simple paint in WM_PAINT message, when the project use
multi-character set, it is OK.
but when I change to UNICODE, some Chinese characters are illegible( I see
sizeof(TCHAR)=2 being displayed). Your idea is welcome.
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
{
LPCTSTR smsg = _T("pringÖÐÎÄ");
TextOut(hdc,0,0,smsg, _tcslen(smsg));
TCHAR buf[256];
wsprintf(buf, _T("sizeof(TCHAR)=%d"), sizeof(TCHAR));
TextOut(hdc,0,20,buf, _tcslen(buf));
}
EndPaint(hWnd, &ps);
break;
Best Regards
Onega
I create a simple win32 project (VC2003, windows2003(English) ,
and do simple paint in WM_PAINT message, when the project use
multi-character set, it is OK.
but when I change to UNICODE, some Chinese characters are illegible( I see
sizeof(TCHAR)=2 being displayed). Your idea is welcome.
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
{
LPCTSTR smsg = _T("pringÖÐÎÄ");
TextOut(hdc,0,0,smsg, _tcslen(smsg));
TCHAR buf[256];
wsprintf(buf, _T("sizeof(TCHAR)=%d"), sizeof(TCHAR));
TextOut(hdc,0,20,buf, _tcslen(buf));
}
EndPaint(hWnd, &ps);
break;
Best Regards
Onega