如何判断DCOMConnection是否连接上Server?(100分)

  • 主题发起人 主题发起人 pos0637
  • 开始时间 开始时间
P

pos0637

Unregistered / Unconfirmed
GUEST, unregistred user!
如何判断DCOMConnection是否连接上Server?
当DCOMConnection.connected := True;
后,若关掉Server.exe 客户端如何得知Server.exe
已经关闭?
服务器端如何获取客户端的数量?
 
如何判断DCOMConnection是否连接上Server,DCOMConnection它有AfterConnect事件.
若关掉Server.exe, DCOMConnection會自動報錯.
服务器端如何获取客户端的数量,如下定義一個過程即可:
Procedure TFormServer.setclientcount(UpdateCount:Integer);
Var CurrentCount:Integer;
begin
CurrentCount:=StrToInt(Labelcount.Caption);
Labelcount.Caption:=InttoStr(CurrentCount+UpdateCount);
end;

 
接受答案了.
 
后退
顶部