D3 and InterBase UDP

D3 and InterBase UDP

Post by Toshiharu Nebat » Sun, 31 Dec 1899 09:00:00



Hello, Delphi Gurus.
Anyone help me How can I coding for InterBase's User Definition Procedure(UDP)?
At InterBase, for example,
   DECLARE EXTERNAL FUNCTION TOPS
   CHAR(256), INTEGER, BLOB
   RETURNS INTEGER BY VALUE
   ENTRY_POINT "te1" MODULE_NAME "tm1";

I think The Answer is
 (1) Create a DLL  named "tm1.dll"  by  CDECL.
 (2) Make Entry Point named by "te1" as
     FUNCTION  te1(c256: char[256], in1: Integer) : Integer
     BEGIN
          ---some code  ---
     END;

Is it True ?  Anyone help me.

Tanks.