Re: Wchar_t to 2 bytes
Re: Wchar_t to 2 bytes
- Subject: Re: Wchar_t to 2 bytes
- From: Jerry <email@hidden>
- Date: Wed, 14 Jun 2006 17:36:59 +0100
On 14 Jun 2006, at 17:30, Mark Thomas wrote:
Hi,
Does anybody know of a way to make wchar_t to be 2 bytes as I
have some
common base Win32 code, which assumes 2 byte wchar_t.
Don't go there! wchar_t is Evil and should be avoided. The problem
is, even if you tell the compiler to make wchar_t 2 bytes wide, all
the standard C library functions like wcslen will still be using 4
bytes so you'd have to make sure that you wrote your own versions of
them, but then any third party libraries you have which used wchar_t
would go nuts. You have to make sure you have complete control over
all uses of wchar_t to do this,
Jerry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden