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