Problem while using MS ACE Database Engine (as a redistributable and as an integrated part of O365)

%3CLINGO-SUB%20id%3D%22lingo-sub-3346672%22%20slang%3D%22en-US%22%3EProblem%20while%20using%20MS%20ACE%20Database%20Engine%20(as%20a%20redistributable%20and%20as%20an%20integrated%20part%20of%20O365)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3346672%22%20slang%3D%22en-US%22%3E%3CP%3ETo%20instantiate%20a%20COM%20object%20we%20use%20a%20following%20C%2B%2B%20code%3A%3C%2FP%3E%3CP%3EDAO%3A%3A_DBEngine*%20daoEngine%20%3D%20nullptr%3B%3C%2FP%3E%3CP%3EHRESULT%20hResult%20%3D%20CoCreateInstance(__uuidof(DAO%3A%3ADBEngine)%2C%20nullptr%2C%20CLSCTX_ALL%2C%20IID_IDispatch%2C%20reinterpret_cast%3CLPVOID%3E(%26amp%3BdaoEngine))%3B%3C%2FLPVOID%3E%3C%2FP%3E%3CP%3EIt%20worked%20well%20with%20previous%20versions%2C%20but%20now%20that%20%3CSTRONG%3E%3CU%3Ehangs%20out%3C%2FU%3E%3C%2FSTRONG%3E.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20found%20a%20lot%20of%20references%20in%20the%20Web%20and%20no%20solution%20(other%20than%20downgrading%20a%20version).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3346672%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
New Contributor

To instantiate a COM object we use a following C++ code:

DAO::_DBEngine* daoEngine = nullptr;

HRESULT hResult = CoCreateInstance(__uuidof(DAO::DBEngine), nullptr, CLSCTX_ALL, IID_IDispatch, reinterpret_cast<LPVOID*>(&daoEngine));

It worked well with previous versions, but now that hangs out.

 

We found a lot of references in the Web and no solution (other than downgrading a version).

 

Thank you in advance.

0 Replies