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

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!darwin.sura.net!utkcs2!utkux1.utk.edu!danny@utkux1.utk.edu
  2. From: danny@utkux1.utk.edu (Danny W. McCampbell)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: THINK Pascal 4.0 Question?
  5. Message-ID: <1992Aug28.165433.14278@utkux1.utk.edu>
  6. Date: 28 Aug 92 16:54:33 GMT
  7. Sender: usenet@utkux1.utk.edu (USENET News System)
  8. Organization: University of Tennessee
  9. Lines: 27
  10.  
  11. I have a question for those of you who use THINK Pascal.
  12. I am working with AppleEvents so I wrote a simple unit
  13. to get my handlers to the kCoreClass(the four apple 
  14. suggests all applications should have).  Well I added
  15. AppleEvents.p to my project window and noticed that it's
  16. uses included AppleTalk.p, Processes.p, PPCToolbox.p, 
  17. EPPC.p, and Notification.p.  I added these to my project
  18. window as well and I am sure without a shadow of a doubt
  19. that I placed them in the proper build order.  Now when
  20. I build the files I get an error that says:
  21.  
  22. nReturnReceipt is not declared.  The error was coming from
  23. the AppleEvents.p.  I traced nReturnReceipt and it is 
  24. declared as a constant in EPPC.p as follows:
  25.  
  26. nReturnReceipt = $00000200;
  27.  
  28. Why should I get this error if all the files are in the 
  29. proper build order.  I have double and triple checked them
  30. so I know they are in the right build order.
  31.  
  32. Any ideas?  I was thinking about changing the line in
  33. AppleEvents.p  (kAEWantReceipt = nReturnReceipt) to 
  34. kAEWantReceipt = $00000200 to see what happens.  Any
  35. ideas would be greatly appreciated.  Thanks in advance.
  36.  
  37. Danny McCampbell
  38.