home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19851 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.5 KB

  1. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!corax.udac.uu.se!perm
  2. From: perm@csd.uu.se (Per Mildner)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: AESuspendTheCurrentEvent & friends
  5. Date: 15 Dec 92 17:37:26
  6. Organization: Computing Science Dept.,Uppsala University, Sweden
  7. Lines: 25
  8. Distribution: world
  9. Message-ID: <PERM.92Dec15173726@groucho.csd.uu.se>
  10. NNTP-Posting-Host: groucho.csd.uu.se
  11.  
  12. I'm trying to use AESuspendTheCurrentEvent and
  13. AEResumeTheCurrentEvent but doesn't seem to get it to work. I cannot
  14. find any sample that uses this nor find anything in any of the
  15. archive.
  16.  
  17. What I wan't: in my AE handler call AESuspendTheCurrentEvent, later
  18. (after several WaitNextEvent) call a routine that does
  19. AEResumeTheCurrentEvent with the same AppleEvent and reply that was
  20. used when calling AESuspendTheCurrentEvent (I assume that is the right
  21. reply to use?). This should now dispatch to a procedure I supply to
  22. AEResumeTheCurrentEvent wich in turn processes the event in the usual
  23. manner. The problem is that I get error -1704 (not a valid descriptor
  24. record) when I call AEResumeTheCurrentEvent (and possibly already at
  25. the Suspend, don't remember).
  26.  
  27. Does anyone have any sample code that does this? Any info or pointers
  28. would be much appreciated.
  29. PS. I used Think C for this with paranoid settings (ie require
  30. prototypes etc). I have the ETO and Developer CDs.
  31.  
  32. Thanks in advance,
  33. --
  34. Per Mildner            perm@CSD.UU.SE
  35. Computing Science Dept.        tel: +46 18181049
  36. Uppsala University, Sweden    fax: +46 18521270
  37.