Thanks to everybody for your help
Following your indications I finally get de dll to work, but it happen something strage:
I made a form and put a button in it (button1)
the code in button1click is :
procedure TForm1.Button1Click(Sender: TObject);
var
vcaux, str: string;
begin
vctermid := '00000015';
vnautmedia := 1;
vnauttype := 1;
vccardnumber := '1234567812345678';
vcamount := '000000100.00';
vcexpdate := '1002';
vctrack := '';
vctax := '';
vctip := '';
vccash := '';
vnseccode := 1;
vnsecresp := 1;
vcsecdata := '';
vnavs := 1;
vcpostalcode := '';
vcaddress := '';
vcinvoice := '';
vcrespsoc := dllpurchase(PChar(vctermid), vnautmedia, vnauttype,
PChar(vccardnumber), PChar(vcamount), PChar(vcexpdate),
PChar(vctrack), PChar(vctax), PChar(vctip), PChar(vccash),
vnseccode, vnsecresp, PChar(vcsecdata),
vnavs, PChar(vcpostalcode), PChar(vcaddress),
PChar(vcinvoice));
//vcaux:=vcrespsoc;
//ShowMessage(vcrespsoc);
end;
If I execute the code just like i put here, the program works, but i I "uncomment" at least one of the last 2 lines , the software raises an exception SIGSEGV
Why I can not even assign the value of vcrespsoc to another variable ?