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