A
angel725
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,<br> Dialogs, StdCtrls;<br><br>type<br> TForm1 = class(TForm)<br> Button1: TButton;<br> Edit1: TEdit;<br> procedure Button1Click(Sender: TObject);<br> private<br> { Private declarations }<br> public<br> { Public declarations }<br> function ss():integer;<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.dfm}<br><br>function tform1.ss ():integer;<br> begin<br> edit1.Text:='33';<br> end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> mythead:thandle;<br> id:dword;<br>begin<br> mythead:=createthread(nil,0,@ss,nil,0,id);<br>end;<br><br>end.<br><br>错误:<br>Build<br> [Warning] Unit1.pas(31): Return value of function 'TForm1.ss' might be undefined<br> [Error] Unit1.pas(38): Variable required<br> [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'