unit Unit1;interfaceuses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;type
  TForm1 = class(TForm)
    Button1: TButton;
    Edit1: TEdit;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;var
  Form1: TForm1;
    hThread:THandle;
  ThreadID:DWord;
  answer:Integer;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
 hThread:=CreateThread(nil,0,@test,nil,0,ThreadID);   這裡出錯Undeclared identifier: 'test' end;function test:Longint;stdcall;
var
  i:Integer;
begin
  for i:=1 to 2000000 do
  begin
    inc(answer,Round(Abs(Sin(Sqrt(i)))));
    Form1.edit1.Text:=IntToStr(answer);
  end;
  Result:=1;
end;end.
這是爲什麽啊~~~~~~~
拜託了~~~~~~~~~~