alexiworld
July 8th, 2003, 09:33 AM
I have a problem with ADO connections ...
When I try to create connection through ADO to database through GUI thread of my dialog I don't have any problem. The connections are properly created and I can use them.
But If I start new thread and delegate it creating of connections then I received failed HRESULT from CreateInstance.
I step into comip.h and I found that it result in errors here:
hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast<void**>(&pIUnknown));
Can somebody give me advice what I should do?? And what cause this problem? Thank you in advance!
Regards, Alex
When I try to create connection through ADO to database through GUI thread of my dialog I don't have any problem. The connections are properly created and I can use them.
But If I start new thread and delegate it creating of connections then I received failed HRESULT from CreateInstance.
I step into comip.h and I found that it result in errors here:
hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast<void**>(&pIUnknown));
Can somebody give me advice what I should do?? And what cause this problem? Thank you in advance!
Regards, Alex