Originally Posted by
ac1d_buRn
Pretty sure i read somewhere, DrawTextA works with unicode or something like that :\
A is ANSI and U is Unicode.
Example:
Code:
char text[] = "hello";
MessageBoxA(0, text, 0, 0); //this works
wchar_t text[] = L"hello";
MessageBoxW(0, text, 0, 0); //also works
char text[] = "hello";
MessageBoxW(0, text, 0, 0); //this doesnt work
wchar_t text[] = L"hello";
MessageBoxA(0, text, 0, 0); //also doesnt work
//if you use MessageBox (you say not if ansi or unicode) then
//the compiler decides what function to call depending on which
//characterset you have set (ansi or unicode)