delphi精英请进!
我的函数:
function myfunc(s:integer;s1,s2:string):bool;stdcall;
begin
//省略。。。。。
end;
我用:CreateThread();产生一个线程,并调用我的函数:myfunc();
procedure TForm1.Button1Click(Sender: TObject);
var
hThread:Thandle;//定义一个句柄
ThreadID:DWord;
s:integer;
begin
hthread:=CreateThread(nil,0,@myfunc,nil,0,ThreadID);
if hThread=0 then
begin
messagebox(Handle,'Didn’t Create a Thread',nil,MB_OK);
exit;
end;
我要怎样才能传递三个参数(s,s1,s3)给我的函数mytfunc();
如何用三个参数替换hthread:=CreateThread(nil,0,@myfunc,nil,0,ThreadID)中的第二个nil。