Subject Re: [firebird-support] Re: UDF with string parameter in Terminal Server
Author Helen Borrie
>--- In firebird-support@yahoogroups.com, "Gustavo" <gusm@...> wrote:
> > I wrote a simple UDF in Delphi. The code is the following:
> >
> > function MMPruebaString(CualAlias: PChar): PChar;
> > begin
> > Result:=CualAlias;
> > end;
>
>Try out something in ib_udf that works with a string. For example.
>
>DECLARE EXTERNAL FUNCTION substr .....
>
>select substr('Hello World!', 2,5)
>from RDB$DATABASE;
>

At 10:56 AM 18/09/2007, you wrote:

>(Yes, this is a deprecated function because you now have substring
>built into the engine itself, but you can test whether this really is
>a terminal services issue or something about your custom dll).

...such as omitting the cdecl calling convention from the function declaration?

./heLen