[Haskell-cafe] C structures

Magnus Therning magnus at therning.org
Fri Nov 13 02:12:07 EST 2009


On 13/11/09 05:31, Vasiliy G. Stavenko wrote:
> 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
> -> IO RESULT
> 
> 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. 

Possibly this old post of mine can help: http://therning.org/magnus/archives/315

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20091113/91b15030/signature.bin


More information about the Haskell-Cafe mailing list