ipcclient.pp 337 B

12345678910111213141516171819
  1. {$mode objfpc}
  2. {$h+}
  3. program ipcclient;
  4. uses simpleipc;
  5. begin
  6. With TSimpleIPCClient.Create(Nil) do
  7. try
  8. ServerID:='ipcserver';
  9. If (ParamCount>0) then
  10. ServerInstance:=Paramstr(1);
  11. Active:=True;
  12. SendStringMessage('Testmessage from client');
  13. Active:=False;
  14. finally
  15. Free;
  16. end;
  17. end.