home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14535 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.9 KB  |  50 lines

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