Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Dimitry Sibiryakov
14.03.2014 17:45, Weverton Gomes wrote: > Yes. The source use a pointer to a delphi structure to represent the > timestamp. And, as I > said before, this works normally since FB 1.5. For me it works with 3.0 as well: > SQL> declare external function ate timestamp returns smallint by value

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Weverton Gomes
Yes. The source use a pointer to a delphi structure to represent the timestamp. And, as I said before, this works normally since FB 1.5. TFBDate = integer; TFBTime = Cardinal; { FireBird TimeStamp record } TFBTS = packed record Date: TFBDate; Time: TFBTime; end; PFBTS = ^TFBT

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Carlos H. Cantu
DS>Dates? Do you really work with ISC_TIMESTAMP without calling isc_decode_timestamp()??? It is not difficult to decode/encode ISC_TIMESTAMP using pure pascal ;) Just basic math with some divs and mods... []s Carlos http://www.firebirdnews.org FireBase - http://www.FireBase.com.br DS> 14.03

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Dimitry Sibiryakov
14.03.2014 17:01, Weverton Gomes wrote: > It uses only simple structures to work with strings, numbers and dates. Dates? Do you really work with ISC_TIMESTAMP without calling isc_decode_timestamp()??? -- WBR, SD. ---

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Weverton Gomes
Dimitry, First: Alex asked me to let the file available. Second: I'm using these dll normally in FB 2.5. And the source code doesn't rely on any external dependency. It uses only simple structures to work with strings, numbers and dates. Weverton Gomes de Morais Tecnólogo em Redes de Comunicação

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Dimitry Sibiryakov
14.03.2014 16:43, Weverton Gomes wrote: > the dll file is available at http://www.sendspace.com/file/02v4af Do you suggest him to decompile your DLL? Show sources of your UDF_MAX. > this dll was compiled in Delphi. So, I think there is no dependencies. Thinking is not enough. Your DLL may

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Weverton Gomes
Alex, the dll file is available at http://www.sendspace.com/file/02v4af Vlad, this dll was compiled in Delphi. So, I think there is no dependencies. Mark, I put the "?" as a wildcard; in this space came the UDF name (e.g. UDF_MAX). Thank you all, Weverton Gomes de Morais Tecnólogo em Redes de C

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Mark Rotteveel
On Thu, 13 Mar 2014 14:33:19 -0300, Weverton Gomes wrote: > Hi, > > I have just started testing FB 3.0 Alpha 2 (32 bits) and I'm getting in > trouble using the same UDF's I already use in FB 2.5. I'm getting the known > message: > "Invalid token. > invalid request BLR at offset 35. > function ???

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Vlad Khorsun
> I have just started testing FB 3.0 Alpha 2 (32 bits) and I'm getting in > trouble using the same UDF's I already use in FB 2.5. I'm getting the known > message: > "Invalid token. > invalid request BLR at offset 35. > function ? is not defined. > module name or entrypoint could not be found."

Re: [Firebird-devel] UDF's in Firebird 3.0

2014-03-14 Thread Alex
On 03/14/2014 01:22 AM, Weverton Gomes wrote: Win 7 Pro 32 bits I can't help with windows UDFs - but pretty sure that if you place DLL to accessible place and send the link here our windows guys will take a look at the problem. I have just started testing FB 3.0 Alpha 2 (32 bits) and