> On Wed, 29 May 2013 09:13:09 +0200 > "Kees Bleijenberg" <k.bleijenb...@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 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe