Using COM / ActiveX Object without Registering It in the Registry
COM/ActiveX components are traditionally registered in the system registry to allow the corresponding Windows API functions find the modules (DLL or EXE) that contain the code of the components.
A major problem that occurs with the registration is the lack of user privileges, necessary for writing to the registry.
Also, when creating portable applications, it is important to be able to run applications without prior installation.
BoxedApp SDK allows registering COM / ActiveX components in the virtual registry.
The two functions that facilitate this are:
- BoxedAppSDK_RegisterCOMLibraryInVirtualRegistry, which registers the library of COM components made out as a DLL in the virtual registry.
- BoxedAppSDK_RegisterCOMServerInVirtualRegistry, which registers the library of COM components made out as an EXE in the virtual registry.
After calling the required function, the application can create COM / ActiveX objects just as if they were actually registered in the system registry.