library ConfiguraciónPDVDLL;
uses
System.SysUtils,
System.Classes,
VCL.Forms,
Windows,
IdTCPClient,
Dialogs,
UConfiguracion in 'UConfiguracion.pas' ,
UdmConexion in 'UdmConexion.pas' ,
UFamilia in '..\..\UnitsCompartidas\UFamilia.pas',
JsonDataObjects in '..\..\UnitsCompartidas\JsonDataObjects.pas',
uErrorDescrip in '..\..\UnitsCompartidas\uErrorDescrip.pas';
var
DLLApp :TApplication;
{$R *.res}
procedure Crear(ParentApp :TApplication; var ClienCon :TIdTCPClient; IDClien :String); stdcall;
begin
Application := ParentApp;
fmConfiguracion := TfmConfiguracion.Create(nil);
fmConfiguracion.Show;
fmConfiguracion.ClienConLocal := ClienCon;
IDCliente := IDClien;
if Not(fmConfiguracion.ClienConLocal.Connected) then
fmConfiguracion.ClienConLocal.Connect;
end;
procedure DLLUnload(Reason: Integer); register;
begin
if Reason = DLL_PROCESS_DETACH then
Application := DLLApp;
end;
exports
Crear;
begin
isMultiThread := True;
DLLApp := Application;
DLLProc := @DLLUnload;
end.