[Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Norbert Saint Georges
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;

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Adriano dos Santos Fernandes
On 16/11/2016 07:33, Norbert Saint Georges wrote: > Or can I find a pascal example of a UDR function that is fine? > > https://github.com/asfernandes/fbstuff/tree/master/src/pascal Adriano -- Firebird-Devel mailing list

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Norbert Saint Georges
Adriano dos Santos Fernandes a écrit : > https://github.com/asfernandes/fbstuff/tree/master/src/pascal > > > Adriano Thanks Adriano, It was on these sources that I was able to test the procedures( "gen_rows", which works well. Except for my error, I do not see any sources on the implementation of

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Adriano dos Santos Fernandes
On 16/11/2016 07:44, Norbert Saint Georges wrote: > Adriano dos Santos Fernandes a écrit : >> https://github.com/asfernandes/fbstuff/tree/master/src/pascal >> >> >> Adriano > Thanks Adriano, > It was on these sources that I was able to test the procedures( > "gen_rows", which works well. > Except

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Norbert Saint Georges
Adriano dos Santos Fernandes a écrit : > You can make a procedure work but cannot make a function work? > > > Adriano Yes, that's exactly it. On the basis of the example "gen_rows" I was able to create my own procedures that work well. I try to create a UDR function. UdrPlugin.registerFunction(

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Adriano dos Santos Fernandes
On 16/11/2016 08:09, Norbert Saint Georges wrote: > > UdrPlugin.registerFunction(status,' int16_bin ',int16Factory.create()); > > And you do it with these spaces (' int16_bin ') and expect it to work? Adriano -- Firebir

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Norbert Saint Georges
Adriano dos Santos Fernandes a écrit : > And you do it with these spaces (' int16_bin ') and expect it to work? > > > Adriano No, there is no space, it must be a copy / paste effect in the mail :-) -- Norbert Saint Georges http://tetrasys.fi

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Adriano dos Santos Fernandes
On 16/11/2016 08:54, Norbert Saint Georges wrote: > Adriano dos Santos Fernandes a écrit : >> And you do it with these spaces (' int16_bin ') and expect it to work? >> >> >> Adriano > No, there is no space, it must be a copy / paste effect in the mail :-) > Anyway, you're not following the procedur

Re: [Firebird-devel] Function UDR in Pascal

2016-11-16 Thread Norbert Saint Georges
Adriano dos Santos Fernandes a écrit : > You're exporting the function as you'd did with an UDF (nothing to to > with UDR). You're registering the function inside this exported function > (instead of in firebird_udr_plugin)... Ok, the exports must be grouped in a single declaration per dll. When y

[Firebird-devel] UDR IExternalFunction

2016-11-16 Thread Norbert Saint Georges
Hello, In the procedure execute(status: IStatus; context: IExternalContext; inMsg: Pointer; outMsg: Pointer); virtual; abstract; inMsg and outMsg Pointer to what? And how to recover it? -- Norbert Saint Georges http://tetrasys.fi ---