home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!jvnc.net!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!queen.mcs.drexel.edu!udmorrow
- From: udmorrow@mcs.drexel.edu (Daniel Morrow)
- Newsgroups: comp.sys.mac.programmer
- Subject: problems with opening a file with FSpOpenDF
- Message-ID: <1992Nov11.225447.15606@mcs.drexel.edu>
- Date: 11 Nov 92 22:54:47 GMT
- Sender: udmorrow@mcs.drexel.edu (Daniel Morrow)
- Distribution: usa
- Organization: Drexel University
- Lines: 20
-
- I'm calling StandardGetFile which pases back a StandardFileReply in
- one of it's parameters.
-
- Then, All I'm trying to do is use open the file with FSpOpenDF
- using the sfFile field of the StandardFileReply type variable.
-
- Like this:
- StandardGetFile(0L, 1, typeList, &reply);
- sfFile = reply.sfFile;
- xErr = FSpOpenDF(&sfFile, fsRdWrPerm, &refNum);
-
- Anyway, no matter which file I choose, the refNum is always the same.
-
- The sfFile variable has the correct information in it but when it
- gets passed to FSpOpenDF, the refNum goes weird.
-
- Is there a better way to do this?
-
- -Dan.
- udmorrow@mcs.drexel.edu
-