• 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: ifstream can't open mac formated path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ifstream can't open mac formated path


  • Subject: Re: ifstream can't open mac formated path
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 3 Apr 2007 09:41:19 -0400
  • Organization: Rogue Research

On 4/3/07 5:49 PM, Denis Osadchy said:

>Hi All,
>
>we need to handle AEOpenDocument command in application. In handler
>we need to create ifstream. We have library function which forms
>mac formatted path (like imac:Users:...) from FSSpec. Such paths were handled
>correctly previously in CW build. Now in Xcode project ifstream
>initialization fails. Initialization works if I use unix formatted path.
>
>Is it possible to initialize ifstream using mac formatted path?
>
>If not - what the correct way to get POSIX path from FSSpec?

The Carbon list would be a better place to ask this.

But these days, you should never use HFS paths, nor should you use
FSSpecs.  However, there are many functions to convert between posix
paths, hfs paths, FSSpecs, and FSRefs, you could use those.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >ifstream can't open mac formated path (From: Denis Osadchy <email@hidden>)

  • Prev by Date: Order of -framework arguments while linking
  • Next by Date: Autocompletion not working
  • Previous by thread: ifstream can't open mac formated path
  • Next by thread: Order of -framework arguments while linking
  • Index(es):
    • Date
    • Thread