叶
叶不归
Unregistered / Unconfirmed
GUEST, unregistred user!
type
Tc=class(TThread)
private
P : IDispatch;
protected
procedure Execute;override;
end;
var c: TC;
implementation
uses ActiveDs_TLB,Ole2;
{$R *.DFM}
procedure TC.Execute;
begin
Coinitialize( nil ); //这个怎么没用???????
try
P := CreateOleObject('WinNt://FLYDREAM'); //出错了!!!!
(P as IADS).Put('User','asdfg');
(P as IADS).SetInfo;
finally
CoUninitialize;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
c := Tc.Create( False );
end;
这是..见鬼了吗??
Tc=class(TThread)
private
P : IDispatch;
protected
procedure Execute;override;
end;
var c: TC;
implementation
uses ActiveDs_TLB,Ole2;
{$R *.DFM}
procedure TC.Execute;
begin
Coinitialize( nil ); //这个怎么没用???????
try
P := CreateOleObject('WinNt://FLYDREAM'); //出错了!!!!
(P as IADS).Put('User','asdfg');
(P as IADS).SetInfo;
finally
CoUninitialize;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
c := Tc.Create( False );
end;
这是..见鬼了吗??