Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucdavis!iris!lim From: lim@iris.ucdavis.edu (Lloyd Lim) Newsgroups: comp.sys.mac.programmer Subject: Re: HELP (easy -)) - Open & Close Picture Message-ID: <3826@ucdavis.ucdavis.edu> Date: 19 Mar 89 07:24:05 GMT References: <635@uvicctr.UUCP> <9461@polyslo.CalPoly.EDU> Sender: uucp@ucdavis.ucdavis.edu Reply-To: lim@iris.ucdavis.edu (Lloyd Lim) Distribution: na Organization: U.C. Davis - Department of Electrical Engineering and Computer Science Lines: 23 In article <9461@polyslo.CalPoly.EDU> dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) writes: >In article <635@uvicctr.UUCP> hedstrom@uvicctr.UUCP (Brad Hedstrom) writes: >> picH = OpenPicture(&picSize); /* start "recording" picture */ > > I don't have IM right in front of me, but I believe you mean > > picH = OpenPicture(picSize); > >I don't think the picsize rect parameter >is a var, I think OpenPicture wants the parameter to be call by value, >but I could be wrong since I'm going from memory, any comments from >anyone who's not too lazy to acutally look this thing up??? &picSize was correct (for LSC at least). OpenPicture does take a value parameter but remember this is C! All variables greater than 4 bytes in size are passed by pointers. I don't use MPW so I can't vouch for that but I see no reason why it would be different for rects. I know - you just forgot - you didn't really mean to say that in your posting. :-) +++ Lloyd Lim Internet: lim@iris.ucdavis.edu Compuserve: 72647,660 US Mail: 146 Lysle Leach Hall, U.C. Davis, Davis, CA 95616