Subject | Re: [firebird-support] DLL help please |
---|---|
Author | Ivan Prenosil |
Post date | 2006-12-15T11:03:54Z |
> DLLIMPORT int addfunc( int a, int b )Input parameters are always passed as pointers to values.
> {
> return a + b;
> }
>
> testdll.sql
>
> DECLARE EXTERNAL FUNCTION addfunc
> INTEGER, INTEGER
> RETURNS INTEGER
> ENTRY_POINT 'addfunc' MODULE_NAME 'testdll';
Output value is also passed using pointer,
unless you specify RETURNS INTEGER BY VALUE
(can be used only for simple types, not Timestamp, Varchar, ...)
Ivan
http://www.volny.cz/iprenosil/interbase/