Subject Help about UDF
Author ibrahim@infinito.it
Hi all,

I'm trying to make some UDF using Free pascal compiler under linux
and I'm having some problems.
Can anyone help me?

Thanks

My code is the following


library udf_cf;
{$mode objfpc}

uses sysutils;

{$PACKRECORDS C}
const
errNessunErrore : Integer = 0;
errProva : Integer = 20;

function VerificaFormaleCF(pCF : pchar; ErroreDiRitorno : integer)
: integer;stdcall;
begin
Result := 10; //This gives a "segmentation fault" error and IB dies
Result := ErroreDiRitorno; //This works
end;

exports
VerificaFormaleCF name 'VerificaFormaleCF';
end.