M
masm
Unregistered / Unconfirmed
GUEST, unregistred user!
use
...
type
TfmClient = class;
TReceiveThread = class(TThread)
private
FForm : TfmClient;
procedure ShowMessage;
Function checkreply(Flag:dword):byte;
protected
procedure Execute; override;
public
send_p:^byte;
constructor Create(F: TfmClient); reintroduce;
end;
TfmClient = class(TForm)
主窗口类定义
...
constructor TReceiveThread.Create(F: TfmClient);
begin
FForm := F;
inherited Create(False);
end;
procedure TReceiveThread.Execute;
var
I:Integer;
P:^byte;
begin
...
I:=FForm.IdTCPClient1.ReadFromStack;
FForm.IdTCPClient1.ReadBuffer(P^,I);
...
end;
...
...
type
TfmClient = class;
TReceiveThread = class(TThread)
private
FForm : TfmClient;
procedure ShowMessage;
Function checkreply(Flag:dword):byte;
protected
procedure Execute; override;
public
send_p:^byte;
constructor Create(F: TfmClient); reintroduce;
end;
TfmClient = class(TForm)
主窗口类定义
...
constructor TReceiveThread.Create(F: TfmClient);
begin
FForm := F;
inherited Create(False);
end;
procedure TReceiveThread.Execute;
var
I:Integer;
P:^byte;
begin
...
I:=FForm.IdTCPClient1.ReadFromStack;
FForm.IdTCPClient1.ReadBuffer(P^,I);
...
end;
...