Path: utzoo!utgpu!watmath!clyde!ima!bbn!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: HELP (easy -)) - Open & Close Picture Message-ID: <27565@apple.Apple.COM> Date: 19 Mar 89 22:30:53 GMT References: <635@uvicctr.UUCP> <9461@polyslo.CalPoly.EDU> Distribution: na Organization: Apple Computer Inc, Cupertino, CA Lines: 27 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); > No, Brad had it right; the ampersand should be there. The rest of the program isn't here so I can't be sure, but I think the problem was that the DrawPicture() command used was something like: DrawPicture(&picH); when it should have been: DrawPicture(picH); The actual handle needs to be passed, not a pointer to it. ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions