home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14979 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.6 KB

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