home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15247 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news!benton.prepress.com!nuntius
  2. From: chris@benton.prepress.com (christopher m. knox)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: C problem using Rects
  5. Message-ID: <1992Sep9.192842.11886@prepress.com>
  6. Date: 9 Sep 92 19:28:42 GMT
  7. References: <1992Sep7.041900.24489@ccu.umanitoba.ca>
  8. Sender: usenet@prepress.com (Usenet login)
  9. Organization: Pre-Press Technologies, Inc.
  10. Lines: 19
  11. Nntp-Posting-Host: chris
  12. X-Useragent: Nuntius v1.1b2
  13.  
  14. Subject: C problem using Rects
  15. From: David A. Denboer, umdenbo0@ccu.umanitoba.ca
  16. In article <1992Sep7.041900.24489@ccu.umanitoba.ca> David A. Denboer,
  17. umdenbo0@ccu.umanitoba.ca writes:
  18. >For some stupid reason, this followinf piece of code does not compile
  19. anymore.
  20. >        OffsetRect(&dispBounds, -dispBounds.left, -dispBounds.top);
  21. >
  22. >In one project, it compiles fine.
  23. >If I move the code to another project, it will not compile again.  It
  24. says
  25. >"Syntax Error", and my C compiler does not seem to know what a Rect
  26. is?!!!
  27.  
  28. If you're using Think C, check whether MacHeaders is included. It may be
  29. in the prefix in one of your projects but not in the other. If that
  30. fails, include "Quickdraw.h" and try to compile.
  31. If THAT fails, consider another compiler... (haha)
  32. chris knox "Omne animal triste est post (or without) coitum"
  33.