Q qgz Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-03 #1 做了一个多线程,运行正常,死机后再重新启动总是提示尚未调用的coinitialize,如何解决?
M maoyihua Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-03 #2 你在线程处理中是不是使用了COM环境啊,如果有的话,最好重新启动一下计算机或者把COM环境手工注销一下!
H hongxing_dl Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-03 #3 自己手工调用一下: uses activex; /// activex.CoInitialize(nil); 最后: activex.CoUninitialize;
P paulorwys Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-03 #4 已经回答了, 只要一句: CoInitialize();//无参数的,Win32参考就有 在DLL的切入点开头。
C chenshaizi Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-03 #5 var Form1: TForm1; implementation uses activex; {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin //do your something end; Initialization CoInitialize(nil); Finalization CoUnInitialize; end.
var Form1: TForm1; implementation uses activex; {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin //do your something end; Initialization CoInitialize(nil); Finalization CoUnInitialize; end.