Is it possible to use COM Object from DLL without register in C++ not managed code?
You can create manifest files for the DLL and use Registration-Free COM.
Say, the COM DLL needs to be registered, but the application doesn't have admin access rights. Here is an easy hack to register the DLL under HKEY_CURRENT_USER, which doesn't require admin rights:
LoadLibrary to load the COM DLL.GetGetProcAddress to get the address of DllRegisterServer.HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER and HKEY_CLASSES_ROOT to HKEY_CURRENT_USER\Software\Classes.DllRegisterServer obtained in step 2.HKEY_CURRENT_USER.Yes, if it does not rely internally on other registered objects.
LoadLibrary the DLLGetProcAddress its DllGetClassObjectDllGetClassObject to obtain IClassFactory pointer for CLSID of interestIClassFactory::CreateInstance and instantiate the coclass