home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21052 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.7 KB  |  44 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!psinntp!telesci!tnelson
  3. From: tnelson@telesciences.com (Tracy M Nelson)
  4. Subject: Re: THINK C Primer Code Problem...
  5. Message-ID: <1993Jan8.192125.21246@telesciences.com>
  6. Organization: TeleSciences CO Systems, Inc.
  7. References: <1993Jan4.153017.1397@utkux1.utk.edu>
  8. Date: Fri, 8 Jan 1993 19:21:25 GMT
  9. Lines: 33
  10.  
  11. In article <1993Jan4.153017.1397@utkux1.utk.edu> danny@martha.utcc.utk.edu (Danny William McCampbell) writes:
  12. >Hi all.  Over the weekend I was typing in some of the programs from
  13. >the Macintosh Programming Primer for THINK C.  Well, I got the ones
  14. >I type in to work successfully except Mondrian.  If any of you are...
  15.  
  16. >Could someone give me some insight on this.  I ran precompile on it
  17. >and it says that blackColor is undefined in the statement
  18. >
  19. >gFillColor = blackColor 
  20. >
  21. >blackColor occording to IM Vol. 1 is a global all ready defined in the
  22. >ROMS.  What is happening here?  I have MacTraps in the project just to
  23. >let you know.
  24.  
  25. >--
  26. >Danny McCampbell
  27. >UT Computing Center
  28. >danny@utkux1.utk.edu
  29.  
  30. I had the same problem.  I believe it stems from the fact that Think C
  31. reorganized their header files (or failed to update them -- I recall
  32. I had a problem using color because the color picker package wasn't
  33. described properly).  Anyway, the way I remember solving it was to
  34. use the definition of blackColor from IM and just substitute 1 in
  35. the assignment statement.  Maybe not the proper way, but it was The
  36. Thing To Do At The Time.
  37.  
  38. Incidentally, I used this same code to write a screen saver module
  39. for After Dark.  Couldn't call it Mondrian, though...
  40. ---
  41. Tracy Nelson
  42. TeleSciences C O Systems
  43. tnelson@telesciences.com
  44.