Re: CopyCStringToPascal
Re: CopyCStringToPascal
- Subject: Re: CopyCStringToPascal
- From: Ben Weiss <email@hidden>
- Date: Thu, 16 Jun 2005 12:32:32 -0700
On Jun 16, 2005, at 3:03 AM, Eric Albert wrote: On Jun 16, 2005, at 1:42 AM, Ben Weiss wrote:
I'm porting some old code that uses 'c2pstrcpy', and XCode informs me that the function is deprecated. Apple's website confirms this, and states that I should use CopyCStringToPascal instead.
However, the new 10.4 universal headers indicate that CopyCStringToPascal is also deprecated, but I can't find a newer equivalent to convert it to. (It would be great if the compiler warning could tell me this.) Anybody know?
I think the theory there is that Pascal strings themselves are not encouraged any more. You should switch from APIs that use Pascal strings to more modern APIs that are Unicode-friendly.
In that case, can you recommend an alternative to DebugStr (which is not marked as deprecated), which takes a Pascal string and outputs it to the console?
Thanks, Ben |
_______________________________________________
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