home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / apple2 / 25611 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.7 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!jvnc.net!netnews.upenn.edu!netnews.noc.drexel.edu!noc.ocs.drexel.edu!ujmurphy
  2. From: ujmurphy@mcs.Drexel.edu (Jim Murphy)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: OpenResourceFile problem...bug?
  5. Message-ID: <UJMURPHY.92Dec15161552@queen.mcs.Drexel.edu>
  6. Date: 15 Dec 92 21:15:52 GMT
  7. References: <jmk3.724405703@crux1.cit.cornell.edu>
  8. Sender: news@netnews.noc.drexel.edu
  9. Organization: Drexel University
  10. Lines: 27
  11. In-Reply-To: jmk3@crux3.cit.cornell.edu's message of 15 Dec 92 07:48:23 GMT
  12.  
  13.  
  14. On 15 Dec 92 07:48:23 GMT, jmk3@crux3.cit.cornell.edu (Jay M. Krell) said:
  15.  
  16. > I am creating a resource file with CreateResourceFile. It has normal access:
  17. > $C3. This works fine.
  18.  
  19. > I use OpenResourceFile to open it. If I ask for only write access (2), I get
  20. > error $4E, access not allowed. If I ask for read and write (3), no problem.
  21.  
  22. [Bits o' stuff removed for brevity.]
  23.  
  24. > Any ideas what is going on?
  25.  
  26.     Yup. When you call OpenResourceFile, part of the process involves reading
  27. the resource file header to find out where the resource file map is located,
  28. which is required to manipulate the file. Since the Resource Manager was
  29. instructed to open the file with only Write access, it'll get the error when it
  30. tries to read the file header. When dealing with resource files, you must give
  31. the Resource Manager at least Read-only access.
  32.  
  33. >   --Jay, jay.krell@cornell.edu
  34.  
  35.  
  36. Jim Murphy                             "...you really should know that it's
  37. Internet:  ujmurphy@mcs.drexel.edu     never too late to get up and go." 
  38. GEnie:     A2Pro.Jim                   
  39. AOL:       Jimurphy3                   - The Cure, "Doing the Unstuck"
  40.