Re: [Haskell-cafe] using a win32 dll

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
On Wed, 29 May 2013 09:13:09 +0200
"Kees Bleijenberg"

On Wed, 29 May 2013 09:13:09 +0200 "Kees Bleijenberg"
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
participants (2)
-
Kees Bleijenberg
-
Robert Jakob