Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!umich!terminator!dway From: dway@us.cc.umich.edu (Doug Way) Newsgroups: comp.sys.mac.programmer Subject: Think C 4.0 / Color Quickdraw problem Keywords: Color, Quickdraw, Think C, RGB Message-ID: <1990Jul16.033904.13678@terminator.cc.umich.edu> Date: 16 Jul 90 03:39:04 GMT Sender: usenet@terminator.cc.umich.edu (usenet news) Organization: Univ. of Michigan ITD Consulting & Support Services Lines: 19 Has anyone out there programmed Color Quickdraw stuff with Think C? I've been having a problem with getting the compiler to recognize that color routines such as RGBForeColor and SetCPixel are passed the data type RGBColor. For some reason it thinks that it should be a long integer, as with the (old Quickdraw) ForeColor routine. Inside Mac vol. 5 states that these new routines use RGBColor, which contains red, green and blue values ($0000 to $FFFF). When I try to compile, though, it gives me the "Pascal argument wrong size" error. It compiles fine with a long integer passed, and runs as if it were using the old Quickdraw routine. I've included Color.h and all that, and it recognizes RGBForeColor and SetCPixel (no linking problems) as valid routines... What's the deal? Are the declarations messed up in MacTraps, or am I missing something obvious? Answers of general interest can be posted to the net, otherwise send me email. Thanks, -Doug Way