home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ujmurphy@mcs.Drexel.edu (Jim Murphy)
- Newsgroups: comp.sys.apple2
- Subject: Re: OpenResourceFile problem...bug?
- Message-ID: <UJMURPHY.92Dec15161552@queen.mcs.Drexel.edu>
- Date: 15 Dec 92 21:15:52 GMT
- References: <jmk3.724405703@crux1.cit.cornell.edu>
- Sender: news@netnews.noc.drexel.edu
- Organization: Drexel University
- Lines: 27
- In-Reply-To: jmk3@crux3.cit.cornell.edu's message of 15 Dec 92 07:48:23 GMT
-
-
- On 15 Dec 92 07:48:23 GMT, jmk3@crux3.cit.cornell.edu (Jay M. Krell) said:
-
- > I am creating a resource file with CreateResourceFile. It has normal access:
- > $C3. This works fine.
-
- > I use OpenResourceFile to open it. If I ask for only write access (2), I get
- > error $4E, access not allowed. If I ask for read and write (3), no problem.
-
- [Bits o' stuff removed for brevity.]
-
- > Any ideas what is going on?
-
- Yup. When you call OpenResourceFile, part of the process involves reading
- the resource file header to find out where the resource file map is located,
- which is required to manipulate the file. Since the Resource Manager was
- instructed to open the file with only Write access, it'll get the error when it
- tries to read the file header. When dealing with resource files, you must give
- the Resource Manager at least Read-only access.
-
- > --Jay, jay.krell@cornell.edu
-
-
- Jim Murphy "...you really should know that it's
- Internet: ujmurphy@mcs.drexel.edu never too late to get up and go."
- GEnie: A2Pro.Jim
- AOL: Jimurphy3 - The Cure, "Doing the Unstuck"
-