Thursday, July 9, 2009

How i can use c++ & win32 API with Unicode ?

For example i want to use { TexOut } API with unicode characters . please explain how i can do this . Thanks.

How i can use c++ %26amp; win32 API with Unicode ?
WinGDI.h (as other win* headers) contains both UNICODE and ASCII versions:


#ifdef UNICODE


#define TextOut TextOutW


#else


#define TextOut TextOutA


So you can either


#define UNICODE


in your project or use explicitly:


TextOutW( dc, x, y, L"Text", 0 );


No comments:

Post a Comment