home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18287 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.1 KB

  1. 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
  2. From: udmorrow@mcs.drexel.edu (Daniel Morrow)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: problems with opening a file with FSpOpenDF
  5. Message-ID: <1992Nov11.225447.15606@mcs.drexel.edu>
  6. Date: 11 Nov 92 22:54:47 GMT
  7. Sender: udmorrow@mcs.drexel.edu (Daniel Morrow)
  8. Distribution: usa
  9. Organization: Drexel University
  10. Lines: 20
  11.  
  12. I'm calling StandardGetFile which pases back a StandardFileReply in
  13. one of it's parameters.
  14.  
  15. Then, All I'm trying to do is use open the file with FSpOpenDF
  16. using the sfFile field of the StandardFileReply type variable.
  17.  
  18. Like this:
  19.     StandardGetFile(0L, 1, typeList, &reply);
  20.     sfFile = reply.sfFile;
  21.     xErr = FSpOpenDF(&sfFile, fsRdWrPerm, &refNum);
  22.  
  23. Anyway, no matter which file I choose, the refNum is always the same.
  24.  
  25. The sfFile variable has the correct information in it but when it
  26. gets passed to FSpOpenDF, the refNum goes weird.
  27.  
  28. Is there a better way to do this?   
  29.  
  30. -Dan.
  31. udmorrow@mcs.drexel.edu
  32.