[Haskell-cafe] C structures

Vasiliy G. Stavenko stavenko at gmail.com
Fri Nov 13 00:31:48 EST 2009

Hello everyone.

What about passing complex c-types (structures) to c-functions.

More detailed: I have an application in production which was written in
Delphi. IT has ability to create pluggable modules to it. Interface
realized by sending Win32Api messages to application. 

function in haskell Win32  
Graphics.Win32.sendMessage :: HWND -> WyidowMessage-> WPARAM -> LPARAM

Application wants to get different data in WPARAM and LPARAM. Such as
window descriptor (HWND), string pointers and datastructer pointers.
The latter i don't know how to create. 

I need anyones experience. 

More information about the Haskell-Cafe mailing list