• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Wchar_t to 2 bytes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Wchar_t to 2 bytes (From: Mark Thomas <email@hidden>)

  • Prev by Date: Wchar_t to 2 bytes
  • Next by Date: Seeking Suggestions for Template Projects
  • Previous by thread: Wchar_t to 2 bytes
  • Next by thread: Re: Wchar_t to 2 bytes
  • Index(es):
    • Date
    • Thread