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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!spool.mu.edu!darwin.sura.net!ra!usenet
  3. From: Les Aker
  4. Subject: Re: THINK C Primer Code Problem...
  5. Message-ID: <C0CI2r.FG3@ra.nrl.navy.mil>
  6. Sender: usenet@ra.nrl.navy.mil
  7. Organization: NRL Computer Security
  8. References: <1993Jan4.153017.1397@utkux1.utk.edu>
  9. Distribution: World
  10. Date: Mon, 4 Jan 1993 19:56:50 GMT
  11. Lines: 44
  12.  
  13. In article <1993Jan4.153017.1397@utkux1.utk.edu> danny@martha.utcc.utk.edu
  14. (Danny William McCampbell) writes:
  15. >Hi all.  Over the weekend I was typing in some of the programs from
  16. >the Macintosh Programming Primer for THINK C.  Well, I got the ones
  17. >I type in to work successfully except Mondrian.  If any of you are
  18. >familar with this small program, it simply draws a window on the 
  19. >screen and draws ovals at random positions within the window and fills
  20. >the oval with either black or white depending on what the last oval
  21. >was filled with.  Well, I double-checked the program and I know for
  22. >sure I typed it in just like the book.  When I try to run it gives me
  23. >a Link Error::Undefined Button.  I have never seen this error before.
  24. >Could someone give me some insight on this.  I ran precompile on it
  25. >and it says that blackColor is undefined in the statement
  26. >
  27. >gFillColor = blackColor 
  28. >
  29. >blackColor occording to IM Vol. 1 is a global all ready defined in the
  30. >ROMS.  What is happening here?  I have MacTraps in the project just to
  31. >let you know.
  32. >
  33. >I am using a PB160 with System 7.1 with 4 megs of RAM.
  34. >
  35. >Thanks in advance.
  36. >
  37. >--
  38. >Danny McCampbell
  39. >UT Computing Center
  40. >danny@utkux1.utk.edu
  41. >
  42.  
  43. I've managed to get all of the examples working, up to the Reminder.  There are
  44. a couple of errors in my edition of the book, like not enabling
  45. the ability to work in the background in the flags, but I've discovered
  46. what was wrong and moved on.  However, with the Reminder I have an error
  47. on the passing of parameters that I haven't been able to correct.  Is 
  48. anyone else having the same problems, or do I have an early edition or
  49. something like that?
  50.  
  51. The book as a whole is good, and I have learned quite a few things about
  52. C programming that I hadn't considered before.
  53.  
  54. Les Aker
  55.  
  56.  
  57.