Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!malgudi!caen!news.cs.indiana.edu!ux1.cso.uiuc.edu!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac.programmer Subject: Re: Problem with Think C and Polygons! Message-ID: <1991Jun15.015421.9699@ux1.cso.uiuc.edu> Date: 15 Jun 91 01:54:21 GMT References: <13974.2857e2a1@ecs.umass.edu> <1991Jun14.150430.24662@lynx.CS.ORST.EDU> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at U-C Lines: 25 Douglas Muller writes: >THE MAD MUSKRAT writes: >>returns a value, but the other functions won't work. If I use ClosePoly to >>end the polygon definition I get a compiler error: Invalid use of inline >>function. What does that mean?? >> ClosePoly; It means you want to say "ClosePoly();"--you ALWAYS must use ()'s in a C function call, even if there are no arguments. >> LineTo(*(*res+(8*segments+6)),*(*res+(8*segments+7))); >I Don't know much about polygons but I do know that if you don't >LOCK the handle to that resource you will be in big trouble. Bzzzzt. Wrong answer. There's no need to lock the handle, as it's being used quite safely. Now, I'm a bit confused by all the pointer math, but the water rodent could save itself a lot of work by reading up on using [] with pointers. A judicious declaration of "res" could hide a lot of the complexity. (Yes, the large aquatic rat said it was a beginner, and I'm not flaming; just suggesting...) -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner