Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!husc6!endor!singer
From: singer@endor.harvard.edu (THINK Technologies)
Newsgroups: comp.sys.mac
Subject: Re: Help wanted:  a LSC question
Message-ID: <3424@husc6.harvard.edu>
Date: Mon, 30-Nov-87 22:21:26 EST
Article-I.D.: husc6.3424
Posted: Mon Nov 30 22:21:26 1987
Date-Received: Wed, 2-Dec-87 01:29:04 EST
References: <870053@hpcilzb.HP.COM>
Sender: news@husc6.harvard.edu
Reply-To: singer@endor.UUCP (THINK Technologies)
Organization: THINK Technologies, Bedford, MA
Lines: 23

In article <870053@hpcilzb.HP.COM> tedj@hpcilzb.HP.COM (Ted Johnson) writes:
>
>Can someone tell me what I'm doing wrong here?  Using Lightspeed C v.2.11,
>I tried to do the following:
>
>		tempPoint = aRect.topLeft;
>
>When I tried to compile this, I got the error message: 
>	"Wrong number of arguments to macro topLeft"

	You're getting confused between C and Pascal. In C there's no easy
way to get at the variants of a record. Therefore, there's a macro (declared in
"QuickDraw.h") for "topLeft" and "botRight". Instead of "aRect.topLeft", say
"topLeft(aRect)", and all will be well.

		--Rich

**The opinions stated herein are my own opinions and do not necessarily
represent the policies or opinions of my employer (THINK Technologies).

* Richard M. Siegel | {decvax, ucbvax, sun}!harvard!endor!singer    *
* Customer Support  | singer@endor.harvard.edu			    *
* Symantec, THINK Technologies Division.  (No snappy quote)         *