X
xiangyong.wen
Unregistered / Unconfirmed
GUEST, unregistred user!
我看了很多参数的帖子,但都不能用。
procedure ThreadParam(pcahr);
begin
showmessage(string(p));
end;
//调用线程
procedure TForm1.ThreadParamClick(Sender: TObject);
var
xchar;
ThreadIDWORD;
b:HWND;
begin
new(x);
x:='aaa';
b:=begin
Thread(nil,0,@ThreadParam,x,0,ThreadID);
end;
为什么传递的指针都是NIL?
procedure ThreadParam(pcahr);
begin
showmessage(string(p));
end;
//调用线程
procedure TForm1.ThreadParamClick(Sender: TObject);
var
xchar;
ThreadIDWORD;
b:HWND;
begin
new(x);
x:='aaa';
b:=begin
Thread(nil,0,@ThreadParam,x,0,ThreadID);
end;
为什么传递的指针都是NIL?