Xref: utzoo comp.sys.mac.programmer:5586 comp.sys.mac:30002 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-june!uw-entropy!uw-apl!keith From: keith@uw-apl.UUCP (Keith Kerr) Newsgroups: comp.sys.mac.programmer,comp.sys.mac Subject: CopyBits in MPW C 3.0 Keywords: CopyBits , MPW C Message-ID: <225@uw-apl.UUCP> Date: 12 Apr 89 16:54:29 GMT Distribution: na Organization: UW Applied Physics, Seattle Lines: 23 I am converting some MPW C code from v.2.02 to v.3.0. The much tighter type-checking is a constant frustration to my fast and loose programming style. One particular problem is with CopyBits. eg. PixMapHandle mypixhandle; . . CopyBits(*mypixhandle, &(((GrafPtr)wind)->portBits), &((*mypixhandle)->bounds),&((*mypixhandle)->bounds), srcCopy, 0L); This compiles and works OK in MPW 2.02, but won't compile in MPW 3.0 because of a type mismatch between formal and actual parameters in the first argument *mypixhandle. I've tried several variations of this, but nothing seems to compile. The documentation in IM seems to indicate that CopyBits should take bitmaps and pixmaps with no problem. Could someone please clue me in as to how to fix this??? Thanks,