----- Original Message ----- From: "Matt Emson" <[EMAIL PROTECTED]> To: "Urbansound" <[EMAIL PROTECTED]>; "FPC-Pascal users discussions" <fpc-pascal@lists.freepascal.org>
Sent: Tuesday, August 02, 2005 11:26 AM
Subject: Re: [fpc-pascal] Extended float to single and pchar types



Are you sure it is stdcall? Quite often it's the calling convention that
messes up the calling of a C DLL. Could it be safecall or cdecl? Which
compiler made the DLL?


Well... I was sure until it was pointed out that I needed to change ALL of the declarations, not just the one I was accessing, which means that other stdcall declarations were likely stepping on the stack or heap, while I was focused only on the one call I changed. DOAH!

You were correct in your observation.  Thank you Matt.

Mike

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to