>L505 wrote:
>First thing to check.... is it declared CDECL or STDCALL in the C library?
>I think the default C declaration mode is CDECL if it is not defined
explicitely.
I knew it was gonna be the obvious. I changed:
function testreturn(thename:pchar;rcity:pchar;rstate:pchar):integer;
stdcall; external 'libTester';
to
function testreturn(thename:pchar;rcity:pchar;rstate:pchar):integer;
cdecl; external 'libTester';
and all is good.
Thank you very much ;)
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal