X
xiao_zx
Unregistered / Unconfirmed
GUEST, unregistred user!
声明一个函数:
void __fastcall Tchuan::aaa(TComponent *Owner)
{
TADOQuery *adoq = new TADOQuery(Owner);
}
在线程类的 void __fastcall Tchuan::Execute()
{
aaa(Form1);
//---- Place thread code here ----
}
调用,编译正常通过,但运行出错!Tchuan为这个线程类名;
错误信息为roject chuan.exeraised exception class EOleSysError
with message '尚未调用CoInitialize.' process stopped Use Step or
Run to Continue.
请高手帮忙解答!!
void __fastcall Tchuan::aaa(TComponent *Owner)
{
TADOQuery *adoq = new TADOQuery(Owner);
}
在线程类的 void __fastcall Tchuan::Execute()
{
aaa(Form1);
//---- Place thread code here ----
}
调用,编译正常通过,但运行出错!Tchuan为这个线程类名;
错误信息为roject chuan.exeraised exception class EOleSysError
with message '尚未调用CoInitialize.' process stopped Use Step or
Run to Continue.
请高手帮忙解答!!