Subject | Re: UDF does not work |
---|---|
Author | Andrew Monteith |
Post date | 2003-03-25T09:42:01Z |
Hi
All the examples I have seen use cstring, I assume it has something
to do with the calling convention of C Functions. The reason the
second parameter is used, is so that Firebird can free the memory
created by the output parameter.
One other gotcha I came across is that if you want to pass an
Integer to a function it must be 'var' parameter.
HTH
Andrew
--- In ib-support@yahoogroups.com, "supertokkie" <martinstuij@c...>
wrote:
All the examples I have seen use cstring, I assume it has something
to do with the calling convention of C Functions. The reason the
second parameter is used, is so that Firebird can free the memory
created by the output parameter.
One other gotcha I came across is that if you want to pass an
Integer to a function it must be 'var' parameter.
HTH
Andrew
--- In ib-support@yahoogroups.com, "supertokkie" <martinstuij@c...>
wrote:
> Hi Andrew,one
>
> Thanks for your help. Your example works.
>
> But I have some questions.
>
> Why have I to use a second input parameter? Normally I need only
> input parameter and one result parameter.
>
> And why have I to use CSTRING(..) in stead of VARCHAR?
>
>
> Martin