• 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: Dealing with slash characters with fopen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dealing with slash characters with fopen?


  • Subject: Re: Dealing with slash characters with fopen?
  • From: Steve Sisak <email@hidden>
  • Date: Thu, 30 Nov 2006 10:51:02 -0500

At 10:45 PM -0700 11/29/06, Blair M. Burtan wrote:
This is a backward compatibility thing.  New universal binary mach-o
conversion of an older CFM app and I'm trying to read in an older data file
that has the old CFM style paths stored in there.

In that case, it looks like the following sequence would work:

OSErr FSMakeFSSpec (
   short vRefNum,
   long dirID,
   ConstStr255Param fileName,
   FSSpec * spec
);

OSErr FSpMakeFSRef (
   const FSSpec * source,
   FSRef * newRef
);

OSStatus FSRefMakePath (
   const FSRef * ref,
   UInt8 * path,
   UInt32 maxPathSize
);

Use the legacy APIs to interpret the legacy paths, convert to FSRef and extract a POSIX path.

HTH,

-Steve
_______________________________________________
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: 
 >Re: Dealing with slash characters with fopen? (From: "Blair M. Burtan" <email@hidden>)

  • Prev by Date: Solved: STATIC.a library complains on "illegal reference for -dynamic code"
  • Next by Date: plist warnings on old project
  • Previous by thread: Re: Dealing with slash characters with fopen?
  • Next by thread: Re: Dealing with slash characters with fopen?
  • Index(es):
    • Date
    • Thread