Witam,
Mam dwie aplikacje (przykłady z internetu) i dochodzi pomiędzy nimi do komunikacji, ale nie gdy przesyłam z Delphi komunikat to nie wyświetla go w C#.
Kody poniżej:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Sockets;
type
TForm1 = class(TForm)
TcpClient1: TTcpClient;
Edit1: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
if TcpClient1.Connect then
begin
TcpClient1.send(edit1.text);
TcpClient1.Disconnect;
end;
end;
end.