Help! I am receiving this error when viewing the contents of an inbound function parameters in my Delphi 4 application.
The code calls a function in a dll with 3 parameters (app.handle, pchar, boolean)
The declaring function is in externs.pas and declared as:
function AdjustVoucherDifference(hOwner :HWnd; Receipt_ID :PChar;
bCommit: Boolean): boolean; stdcall;
external 'FBCoupon.dll' name 'AdjustVoucherDifference';
in another source file, the code calls it as:
AdjustVoucherDifference(Application.Handle, PChar(Receipt_ID), true);
When stepping through the code in debug mode, I can see valid values in the source file, but when it breaks on the line in externs.pas, the tooltip for the values (or CTRL+F7) shows that the symbols have been eliminated from the linker and I receive exceptions when the execution is in the dll.
The DLL is developed in CBuilder4 and the particular function is declared as:
BOOL __stdcall __DLLTYPE__ AdjustVoucherDifference(HWND hOwner,
char *receipt_id, bool commit);
Compiler optimization is turned off.
Thanks!!!