home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!psinntp!telesci!tnelson
- From: tnelson@telesciences.com (Tracy M Nelson)
- Subject: Re: THINK C Primer Code Problem...
- Message-ID: <1993Jan8.192125.21246@telesciences.com>
- Organization: TeleSciences CO Systems, Inc.
- References: <1993Jan4.153017.1397@utkux1.utk.edu>
- Date: Fri, 8 Jan 1993 19:21:25 GMT
- Lines: 33
-
- 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...
-
- >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.
-
- >--
- >Danny McCampbell
- >UT Computing Center
- >danny@utkux1.utk.edu
-
- I had the same problem. I believe it stems from the fact that Think C
- reorganized their header files (or failed to update them -- I recall
- I had a problem using color because the color picker package wasn't
- described properly). Anyway, the way I remember solving it was to
- use the definition of blackColor from IM and just substitute 1 in
- the assignment statement. Maybe not the proper way, but it was The
- Thing To Do At The Time.
-
- Incidentally, I used this same code to write a screen saver module
- for After Dark. Couldn't call it Mondrian, though...
- ---
- Tracy Nelson
- TeleSciences C O Systems
- tnelson@telesciences.com
-