home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20608 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.5 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!utkux1.utk.edu!martha.utcc.utk.edu!danny
  2. From: danny@martha.utcc.utk.edu (Danny William McCampbell)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: THINK C Primer Code Problem...
  5. Message-ID: <1993Jan4.153017.1397@utkux1.utk.edu>
  6. Date: 4 Jan 93 15:30:17 GMT
  7. Sender: usenet@utkux1.utk.edu (USENET News System)
  8. Organization: University of Tennessee Computing Center
  9. Lines: 26
  10. X-Newsreader: Tin 1.1 PL3
  11.  
  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. familar with this small program, it simply draws a window on the 
  16. screen and draws ovals at random positions within the window and fills
  17. the oval with either black or white depending on what the last oval
  18. was filled with.  Well, I double-checked the program and I know for
  19. sure I typed it in just like the book.  When I try to run it gives me
  20. a Link Error::Undefined Button.  I have never seen this error before.
  21. Could someone give me some insight on this.  I ran precompile on it
  22. and it says that blackColor is undefined in the statement
  23.  
  24. gFillColor = blackColor 
  25.  
  26. blackColor occording to IM Vol. 1 is a global all ready defined in the
  27. ROMS.  What is happening here?  I have MacTraps in the project just to
  28. let you know.
  29.  
  30. I am using a PB160 with System 7.1 with 4 megs of RAM.
  31.  
  32. Thanks in advance.
  33.  
  34. --
  35. Danny McCampbell
  36. UT Computing Center
  37. danny@utkux1.utk.edu
  38.