[REBOL] Re: Windows Callbacks
From: ric_shepard:fishgame:state:ak:us at: 2-Jan-2001 10:05
Thanks, Jeff ... and ... a more complete example would be
stupendous - - if you have the time.
-ric
[jeff--rebol--net] wrote:
> Howdy, Ric:
>
> You can't really make a callback function in REBOL, meaning
> like you have a REBOL function and you have a library
> routine take a pointer to that REBOL function as a
> callback. At this time you really have to have C functions
> act as callbacks. You can manage this with REBOL/command
> like this:
>
> Create another dynamic library containing your callback
> functions and a function that returns a pointer to those
> functions. REBOL/command script gets those pointer to
> functions as integers and passes them along into routines
> that expect pointers to call back functions.
>
> You could have a callback function modify globals that the
> command script could check...
>
> I can provide a more complete example if you like.
>
> -jeff
>
> > Anyone know how to create callback functions under Windows
> > using REBOL/Command? My needs are pretty minimal but I
> > do need to process 'Windows Messages'. TIA.
> >
> > --
> > Ric Shepard <[ric_shepard--fishgame--state--ak--us]>
> > Microcomputer/Network Specialist
> > Alaska Department of Fish and Game
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ric Shepard <[ric_shepard--fishgame--state--ak--us]>
Microcomputer/Network Specialist
Alaska Department of Fish and Game