Subject | Re: [firebird-support] UDF |
---|---|
Author | Josef Kokeš |
Post date | 2011-08-24T05:12:54Z |
> Hello, this is related to my previous post... I'm trying to write a UDFDelphi type Currency is not the same thing as Firebird type DOUBLE
> in Delphi... It's declared like this:
>
> function Descuentos(var Suma:currency;Descuentos:pchar):double; cdecl;
> export;
>
> DECLARE EXTERNAL FUNCTION SG_DES
> DOUBLE PRECISION,
> CSTRING(50)
> RETURNS DOUBLE PRECISION BY VALUE
> ENTRY_POINT 'Descuentos' MODULE_NAME 'SGUDF';
PRECISION. Change the Delphi declaration to:
function Descuentos(var Suma:double;Descuentos:pchar):double; cdecl; export;
Pepak