Datatypes do not work when calling an external DLL procedure
From: Mel Christie <mel_at_puregoodness.com>
Date: Mon, 17 Aug 1998 11:03:45 -0400
Message-ID: <01bdc9ef$b700eda0$7a78e8c3_at_mc-compaq>
I am trying to call a DLL procedure written in Delphi with the specification:
procedure SLMessageDlg(const Code: word); stdcall; export; The Oracle 8 package has the specification: PROCEDURE SLMessageDlg(Code IN NUMBER) AS EXTERNAL LIBRARY lib_scilink
NAME "SLMessageDlg"
CALLING STANDARD PASCAL
PARAMETERS(Code);
However whenever I call SLMessageDlg the number displayed in a message box is wrong (eg when the number 'Code' is 1 it actually displays 51800 !!!) What am I doing wrong?
Date: Mon, 17 Aug 1998 11:03:45 -0400
Message-ID: <01bdc9ef$b700eda0$7a78e8c3_at_mc-compaq>
I am trying to call a DLL procedure written in Delphi with the specification:
procedure SLMessageDlg(const Code: word); stdcall; export; The Oracle 8 package has the specification: PROCEDURE SLMessageDlg(Code IN NUMBER) AS EXTERNAL LIBRARY lib_scilink
NAME "SLMessageDlg"
CALLING STANDARD PASCAL
PARAMETERS(Code);
However whenever I call SLMessageDlg the number displayed in a message box is wrong (eg when the number 'Code' is 1 it actually displays 51800 !!!) What am I doing wrong?
Regards
Mel Christie Received on Mon Aug 17 1998 - 17:03:45 CEST