home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!malgudi.oar.net!ucbeh.san.uc.edu!rainwatr
- From: rainwatr@ucbeh.san.uc.edu
- Newsgroups: comp.sys.mac.programmer
- Subject: Problems in Macintosh Programming Secrets
- Message-ID: <1992Sep4.010109.1710@ucbeh.san.uc.edu>
- Date: 4 Sep 92 01:01:09 EST
- Reply-To: Don.Rainwater@UC.Edu
- Distribution: world
- Organization: Univ. of Cincinnati Center for IT Services
- Lines: 26
-
- I'm trying to get the example programs to work from the Second Edition of
- Macintosh Programming Secrets by Scott Knaster and Keith Rollin. I'm having
- a little trouble with the program in Chapter 4, specifically with the changes
- to the MainEventLoop function in Standard Stuff.c. The line in question is:
-
- itemWasHit = DialogSelect(&event, &theDialog, &itemHit);
-
- When I try to compile the source file, I get the message " 'theDialog' has
- not been declared." There is another occurrance of 'theDialog' a couple of
- lines later, so I don't think it's a typo.
-
- As far as I can tell, there is no function prototype in any of the files
- for DialogSelect. I'm assuming there should be. (?)
-
- There were other variables in MainEventLoop that no declaration was listed
- for, including passToDialog, itemWasHit, and sleepyTime. I made some
- assumptions which I think are correct - I declared the first two as
- Booleans, and sleepyTime as a long.
-
- Anyway, can someone tell me what theDialog should be? A DialogPtr perhaps?
- Also, are there any other gotchas to watch out for in the rest of the book?
-
- Thanks for any info.
- --
- Don Rainwater, Systems Manager, Univ. of Cincinnati Center for IT Services
- Don.Rainwater@UC.Edu
-