Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!nerm From: nerm@Apple.COM (Dean Yu) Newsgroups: comp.sys.mac.programmer Subject: Re: Isn't there an OpenResFile where you supply a VRefNum? Message-ID: <52201@apple.Apple.COM> Date: 30 Apr 91 21:46:45 GMT References: <1655@babcock.cerc.wvu.wvnet.edu> <1991Apr30.092548.26555@ux1.cso.uiuc.edu> Organization: Apple Computer Inc., Cupertino, CA Lines: 34 In article <1991Apr30.092548.26555@ux1.cso.uiuc.edu> resnick@cogsci.uiuc.edu (Pete Resnick) writes: >vrm@blackwater.cerc.wvu.wvnet.edu (Vasile R. Montan) writes: > >>The usual OpenResFile takes a string as its arguement. This >>string is the filename of the resource file to be opened. > >>Isn't there a newer function which does the same thing, but >>which also takes a volume reference number so that the >>location of the file can be specified? I seem to remember >>reading about such a procedure somewhere, but I can't find >>the documentation now when I look. > >Inside Macintosh IV, p. 17: > >FUNCTION OpenRFPerm (fileName: Str255; vRefNum: INTEGER; > permission: Byte) : INTEGER; > In System 7, there's also: FUNCTION HOpenResFile(vRefNum: INTEGER;dirID: LONGINT;fileName: Str255; permission: SignedByte): INTEGER; PROCEDURE HCreateResFile(vRefNum: INTEGER;dirID: LONGINT;fileName: Str255); >>If there is such a procedure, when was it introduced? With >>the MacPlus ROM? > I think these two were introduced in 6.0.x, or maybe just as glue in MPW. -- Dean Yu Blue Meanie, Negative Ethnic Role Model, etc. Apple Computer, Inc. My opinions and so on and so forth...