[Haskell-cafe] using a win32 dll

Kees Bleijenberg k.bleijenberg at lijbrandt.nl
Wed May 29 11:45:56 CEST 2013


> On Wed, 29 May 2013 09:13:09 +0200
> "Kees Bleijenberg" <k.bleijenberg at lijbrandt.nl> wrote:

> > I made a Delphi dll (32 bits windows). This dll exports a function
> > named getPngVersion. This is a function with no arguments that
> > returns a pointer to a array of chars.

> Did you annotate the exported function with stdcall? The calling
> conventions of Delphi are different to that of C. I had problems with
> that sometimes (not with Haskell, but with C)
----------------

Thanks for your answer.
Yes, I did set the calling convention to stdcall for that function in the
dll. I think, setting the calling convention wrong, leads to runtime
problems. This is a link/compile problem.

Kees




More information about the Haskell-Cafe mailing list