Subject Re: [firebird-support] UDF help
Author Kjell Rilbe
Dimitry Sibiryakov wrote:
> On 11 Feb 2005 at 7:57, Kjell Rilbe wrote:
> No need to declare PInteger. It is already declared somewhere in
> system modules.

Ah, thanks. :-)

>>function Add(var a, b: PInteger): Integer; stdcall;
>
> 1) Remove either 'var' or 'P'. Here you declare pointer to pointer.

Duh!! :-)

> 2) Use cdecl, not stdcall.

Just found that one in an example at IBPhoenix. I'm sure I read stdcall
somewhere...

Thanks a bunch - it works now! :-)

Kjell
--
--------------------------------------
Kjell Rilbe
Adressmarknaden AM AB
E-post: kjell.rilbe@...
Telefon: 08-761 06 55
Mobil: 0733-44 24 64