Stack trouble during DLL call?
Posted on 2002-05-10
Am I missing something here? The stack needs to be "adjusted" by 8 bytes in Delphi after returning from the call but I have no idea why!
double* are pushed onto the stack as a DWORD pointer
BYTE are pushed onto the stack as values
double is pushed onto the stack as 8 bytes of data
Thank you for your help!
Here's the Visual C++ DLL function export:
int _stdcall GetPoly(
// here's my Delphi 5 declaration for the DLL function
var dTotalFiltrLow, dTotalFiltrHigh:double):integer;
Here's my call for the function:
// now I need to remove 8 bytes from the stack if things are going to work properly.