Subject | Re: Re: [firebird-support] UDF:s and strings i Delphi |
---|---|
Author | Pavel Menshchikov |
Post date | 2005-02-11T08:04:53Z |
Hello Urs,
UL> In several tutorials it is advised to use the special function
UL> ib_util_malloc that is declared in the unit ib_externals.pas (that
UL> you'll find in some subdirectory of your installation). But I don't
UL> really know the difference this makes to using malloc.
As I can imagine, ib_util_malloc uses the same MSWin malloc function,
since both of them work fine in UDFs.
UL> And: I did only see the "returns parameter n" construct for blob
UL> parameters. Usually one writes "returns cstring(nn)"
For strings you may select any of them.
HTH
--
Best regards,
Pavel Menshchikov
http://www.ls-software.com
UL> In several tutorials it is advised to use the special function
UL> ib_util_malloc that is declared in the unit ib_externals.pas (that
UL> you'll find in some subdirectory of your installation). But I don't
UL> really know the difference this makes to using malloc.
As I can imagine, ib_util_malloc uses the same MSWin malloc function,
since both of them work fine in UDFs.
UL> And: I did only see the "returns parameter n" construct for blob
UL> parameters. Usually one writes "returns cstring(nn)"
For strings you may select any of them.
HTH
--
Best regards,
Pavel Menshchikov
http://www.ls-software.com