home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / acorn / 10564 < prev    next >
Encoding:
Internet Message Format  |  1993-01-26  |  1.4 KB

  1. Path: sparky!uunet!mcsun!uknet!yorkohm!minster!mrp
  2. From: mrp@minster.york.ac.uk
  3. Newsgroups: comp.sys.acorn
  4. Subject: Re: Customising RISC_OSLib, Impulse
  5. Message-ID: <728041139.27319@minster.york.ac.uk>
  6. Date: 26 Jan 93 09:39:00 GMT
  7. References: <1joknrINN4bt@oak10.doc.ic.ac.uk>
  8. Organization: Department of Computer Science, University of York, England
  9. Lines: 27
  10.  
  11. Ian Palmer (ijp@doc.ic.ac.uk) wrote:
  12. : In article <C19445.6J0@cen.ex.ac.uk> py92djm@cen.ex.ac.uk writes:
  13. : >I want to use Computer Concept's Impulse system in a C program.  Unfortunately,
  14. : >it requires that you call an Impulse SWI after certain returns from Wimp_Poll.
  15. : >As Wimp_Poll is called from within the wimp library, this is proving difficult.
  16. : >
  17. : >Has anyone found a way of doing this?
  18. : >
  19. : >Thanks for any help in advance.
  20. : It can be done, but you need a window open (well that's how I got it
  21. : to work, there might be different ways). 
  22.  
  23. And there are.  The neatest way I found was using an unknown event
  24. handler which was passed all the impulse stuff (and more) and
  25. was able to recognise and deal with all the impulse messages.
  26.  
  27. I mailed py92djm@cen.ex.ac.uk  about this but mayby that didnt get
  28. through.
  29.  
  30. I'll be putting an application on the net soon (when I finish the
  31. thing) written in C which uses impulse and acts as a fortune cookie
  32. type program.  Other impulse tasks request quotes from it and the
  33. program sends out random quotes from its database.  The source will be
  34. there too.
  35.  
  36. martin.
  37.