Use COM Object from DLL without register
c++, com, dll
Solution
Yes, if it does not rely internally on other registered objects.
- You `LoadLibrary` the DLL
- You `GetProcAddress` its `DllGetClassObject`
- You call `DllGetClassObject` to obtain `IClassFactory` pointer for `CLSID` of interest
- You are good to go with `IClassFactory::CreateInstance` and instantiate the coclass
Problem
Is it possible to use COM Object from DLL without register in C++ not managed code?