[Haskell-cafe] how to call a callback in a haskell dll

Kees Bleijenberg k.bleijenberg at lijbrandt.nl
Fri Nov 15 08:39:06 UTC 2013


My program creates a Windows dll. The calling program calls a function with
strings as parameters. Works fine. 

I want to add a extra parameter. This extra parameter is a callback:  a
function Int -> Int: stdcall. In Haskell I want to call this function.  So I
have to convert the pointer to a (formal) Haskell function.

In the examples for the FFI, Haskell provides the callback. I need an
example or documentation.

 

Kees

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20131115/d334b52d/attachment.html>


More information about the Haskell-Cafe mailing list