home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!news
- From: M. Nutter <manutter@grove.iup.edu>
- Subject: Re: Simple Think C problem (Help!!!)
- Organization: iup
- X-Xxdate: Wed, 26 Aug 92 13:49:01 GMT
- References: <1992Aug25.142931.20562@fccc.edu>
- Message-ID: <1992Aug26.124643.24414@ctr.columbia.edu>
- Sender: news@ctr.columbia.edu (The Daily Lose)
- X-Useragent: Nuntius v1.1.1d7
- Date: Wed, 26 Aug 1992 12:46:43 GMT
- X-Posted-From: mozart.cc.iup.edu
- X-Posted-Through: sol.ctr.columbia.edu
- Lines: 34
-
- In article <1992Aug25.164824.12197@natinst.com> Stepan Riha,
- stepan@natinst.com writes:
- >Nick complains about getting a "'thePort' has not been declared" message
- when
- >compiling (in THINK C 5) a program he typed in from the Macintosh Primer.
- >Also, nil does not seem to be defined.
- >
- >When the Primer was published the version of THINK C had the variable
- thePort
- >declared in <QuickDraw.h>. In THINK C 5, to be compatible with MPW,
- ><QuickDraw.h> declares thePort as a field in the qd structure. The
- original
- >declaration of thePort has been moved to <THINK.h>.
- >nil is defined in <Types.h>.
-
- Strange. I have a utility file from my ThC 4.0 days that uses
- InitGraf(&thePort) without any problem under ThC 5, and I'm not doing
- anything fancy like #include <THINK.h> or #include <Types.h>. Could
- Nick's problem be something simpler, like failing to include the
- MacTools library?
-
- +------------------------------------+
- | Mark Nutter |
- | manutter@grove.iup.edu |
- +------------------------------------+
- | Apple Support Manager |
- | Indiana University of Pennsylvania |
- | G-4 Stright, Indiana, PA 15705 |
- +------------------------------------+
- | Bonus question: Which of these |
- | two statements is correct? |
- | A) Statement "B" is false. |
- | B) Statement "A" is true. |
- +------------------------------------+
-