M
mh527
Unregistered / Unconfirmed
GUEST, unregistred user!
感觉没错,可运行不起来,谢谢各位大哥了
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
myThread = class(TThread)
private
protected
procedure Execute;
override;
public
end;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
theList:Tlist;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure myThread.Execute;
begin
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
theList.add(myThread.create(False));
end;
end.
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
myThread = class(TThread)
private
protected
procedure Execute;
override;
public
end;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
theList:Tlist;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure myThread.Execute;
begin
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
theList.add(myThread.create(False));
end;
end.