• 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: CopyCStringToPascal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CopyCStringToPascal


  • Subject: Re: CopyCStringToPascal
  • From: Eric Albert <email@hidden>
  • Date: Thu, 16 Jun 2005 12:40:38 -0700

On Jun 16, 2005, at 12:32 PM, Ben Weiss wrote:

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?

CFShow, I imagine.

Anyway, this is rather off-topic for xcode-users. I'd suggest asking these questions on carbon-dev instead, where you're far more likely to have someone involved with those APIs answer questions about them.

-Eric

_______________________________________________
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: 
 >CopyCStringToPascal (From: Ben Weiss <email@hidden>)
 >Re: CopyCStringToPascal (From: Eric Albert <email@hidden>)
 >Re: CopyCStringToPascal (From: Ben Weiss <email@hidden>)

  • Prev by Date: Re: CopyCStringToPascal
  • Next by Date: Re: CopyCStringToPascal
  • Previous by thread: Re: CopyCStringToPascal
  • Next by thread: Re: CopyCStringToPascal
  • Index(es):
    • Date
    • Thread