Hello all,

Not finding any pascal example, I modified the procedure example 
"gen_rows" with the changes "IUdrFunctionFactoryImpl", ....
But I get the error "UDR plugin entry point not found".

  //-------------------------------------------------------------//
function int16_bin(status: IStatus; theirUnloadFlagLocal: BooleanPtr; 
udrPlugin: IUdrPlugin): BooleanPtr; cdecl;
begin
        udrPlugin.registerFunction(status, 'int16_bin', 
int16Factory.create());
        int16theirUnloadFlag := theirUnloadFlagLocal;
        Result := @int16UnloadFlag;
end;

  exports int16_bin;

initialization
        int16UnloadFlag := false;

finalization
        if (not int16UnloadFlag) then
                int16theirUnloadFlag^ := true;

 //-------------------------------------------------------------//

create FUNCTION int16_bin(FINT16 Smallint NOT NULL)
RETURNS guid2
EXTERNAL NAME 'int16!int16_bin'
ENGINE UDR;


Or can I find a pascal example of a UDR function that is fine?

thank you in advance.

-- 
Norbert Saint Georges
http://tetrasys.fi


------------------------------------------------------------------------------
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to