Re: Win32LIB dreams

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Ian,


>What i would really like to see for Win32Lib is the ability to write call
>backs for background processing... if that is at all possible, i find that
>the timer is a little too slow even at 1 ms, and using a call back routine
>for a thread is not at all safe, and you can't suspend or resume it without
>crashing. So where i stand, background processing is the last place to go.

>Ps, if it is already possible please inform me on how it is done!

Can you exapnd on this a little.

Are you talking about Windows calling a user-defined Euphoria routine? If
so, have you read up about Euphoria's call_back function?

--------------------------
call_back
Platform: WIN32, Linux
Syntax: include dll.e
a = call_back(i)
Description: Get a machine address for the Euphoria routine with routine id
i. This address can be used by Windows, or an external C routine in a
Windows .dll, or Linux shared library (.so), as a 32-bit "call-back" address
for calling your Euphoria routine.
Comments: You can set up as many call-back functions as you like, but they
must all be Euphoria functions (or types) with 0 to 8 arguments.
When your routine is called, the argument values will all be 32-bit unsigned
(positive) values. You should declare each parameter of your routine as
atom, unless you want to impose tighter checking. Your routine must return a
32-bit integer value.

Example Program: demo\win32\window.exw, demo\linux\qsort.exu
See Also: routine_id, platform.doc
--------------------------
cheers,
Derek Parnell

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu