On December 27, 2003 01:11 pm, Subhobroto Sinha wrote: > But as I am using pure C++, I have to use GLibc's library functions which > expects wchar_t to be 4 bytes long and NOT 2 bytes.
Herein lies your problem. Mixing the two is not pretty, and I think it should be avoided to maintain sanity. Just use our msvcrt for the Unicode functions, it uses 2-byte wchar_t, so you can mix that freely with the other Win32 functions. -- Dimi.