I have a DLL that reads input from a file and writes output to another file. Instead I want to read input from an XML "object" (request) and deliver a response.
Here is the call:
unit gen1;
interface
uses
SysUtils;
function genber(Zin: PChar): Integer; export; stdcall;
implementation
uses
gen2;
function genber(Zin: PChar): Integer;
begin
Result := -1;
try
IBIS(ZIn);
Result := 1;
finally
end;
end;
end.
And in gen2 I use this:
AssignFile(ZINXML, ZIN);
AssignFile(ZUTXML, 'UT_' + Time + '.XML');
What shall I use instead of AssignFile for reading a XML file?