AnsweredAssumed Answered

C++ Instance ClassFactory

Question asked by Jacques Ceccone on Sep 7, 2020
Latest reply on Sep 7, 2020 by Jacques Ceccone


I try to get properties from part SLDPRT or SLDASM by using DLL C++ and Document Manager but the instance

HRESULT hr2 = swClassFact.CoCreateInstance(__uuidof(SwDMClassFactory), NULL, CLSCTX_INPROC_SERVER);

retrun an error : REGDB_E_CLASSNOTREG.

The CLSID exists ({00AB5D8D-2B8F-416b-9761-92FACC8872BE}), I check in the base and CLSIDFromProgID(L"SwDocumentMgr.SwDMClassFactory.1", &clsid) return OK

The COM librairy is initialized

I tested different method but the result is always the same.

Could you help me please