Perdon por revivir este hilo, pero estamos con un problema en el setdevice...
A diferencia Panasys, a nosotros siempre nos devuelve -100 (The table structure does not exist).
IDcon obviamente guarda el handle...
Código:
function SetDeviceData (IDCon : THandle; tablename:String; data:String; options:String): Integer;StdCall; external 'plcommpro.dll';
Código:
procedure TForm1.Bt_SetDeviceClick(Sender: TObject);
Var Tabla:String;
Datos:String;
Opciones:String;
Ret:Integer;
begin
Tabla:= 'user';
Datos:= 'CardNo=9765216\tPin=123\tPassword=1\tGroup=1\tStartTime=20190112\tEndTime=20190113';
Opciones:= '';
Ret:= SetDeviceData(IDCon,'user',Datos,Opciones);
Memo1.Lines.Add(IntToStr(ret));
end;
Como sabemos si esta bien estructurado?
En datos tambien probamos asi:
Código:
Datos:= 'CardNo=9765216\tPin=123\tPassword=1\tGroup=1';