home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!utkux1.utk.edu!martha.utcc.utk.edu!danny
- From: danny@martha.utcc.utk.edu (Danny William McCampbell)
- Newsgroups: comp.sys.mac.programmer
- Subject: THINK C Primer Code Problem...
- Message-ID: <1993Jan4.153017.1397@utkux1.utk.edu>
- Date: 4 Jan 93 15:30:17 GMT
- Sender: usenet@utkux1.utk.edu (USENET News System)
- Organization: University of Tennessee Computing Center
- Lines: 26
- X-Newsreader: Tin 1.1 PL3
-
- 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
-