• 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: Dan Wood - Discussion Lists <email@hidden>
  • Date: Thu, 16 Jun 2005 07:51:18 -0700

Wow, really? So what would I use in place of, say, KCFindInternetPassword ?


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.


Hope this helps,
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
  • Follow-Ups:
    • Re: CopyCStringToPascal
      • From: j o a r <email@hidden>
References: 
 >CopyCStringToPascal (From: Ben Weiss <email@hidden>)
 >Re: CopyCStringToPascal (From: Eric Albert <email@hidden>)

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