wchar_t on GNU and Win32 - two worlds apart !

Subhobroto Sinha subhobrotosinha at rediffmail.com
Sun Dec 28 12:39:47 CST 2003


An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20031228/5bd49ba7/attachment.html
-------------- next part --------------
No, actually I really don't want to use WineLib (then I can use COM to resolve the shortcut anyway!)

I just want a method where I can use GLibc's Unicode functions on Win32 serialized data which treats wchar_t as 2 bytes long..

On Sun, 28 Dec 2003 Dimitrie O. Paun wrote :
>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.
>


More information about the wine-devel mailing list