G
gzccjz
Unregistered / Unconfirmed
GUEST, unregistred user!
CreateThread参数是怎样的?
有一函数如下;
function MyThreadFunc(Pointer;x:integer):Longint;stdcall;
var
i:longint;
DC:HDC;
S:string;
begin
DC:=GetDC(Form1.Handle);
for i:=0 to 500000 do begin
S:=Inttostr(i);
Textout(DC,x,x,Pchar(S),length(S));
end;
ReleaseDC(Form1.Handle,DC);
end;
如何用CreateThread传两个参数给MyThreadFunc来创建线程?
hthread:=CreateThread(nil,0,@MyThreadfunc,nil,0,ThreadID); 这句只传了一个参数,如何加第二个??
有一函数如下;
function MyThreadFunc(Pointer;x:integer):Longint;stdcall;
var
i:longint;
DC:HDC;
S:string;
begin
DC:=GetDC(Form1.Handle);
for i:=0 to 500000 do begin
S:=Inttostr(i);
Textout(DC,x,x,Pchar(S),length(S));
end;
ReleaseDC(Form1.Handle,DC);
end;
如何用CreateThread传两个参数给MyThreadFunc来创建线程?
hthread:=CreateThread(nil,0,@MyThreadfunc,nil,0,ThreadID); 这句只传了一个参数,如何加第二个??