I like to use an already accepted solution by jkr. This describes how to load ActiveX without registering.
Loading ActiveX without registry)
Normally, when using COM, you would declare an interface in idl and let the compiler create the REFIID to the interface pointer.
Now things look different at my configuration:
I have a project, which I want to modify, to use ActiveX without registering. This project (mfc) has activeX controls as dialog controls in the resources.
The dialog resource is viewable in visualstudio, when you register the control by regsvr32. Otherwise not.
So I removed the ocx dialog controls. Now want to put them in again at runtime. I don't know how to find out the necessary RIID
So in the solution mentioned, I need to find out what to pass for these parameters:
REFIID riid, //Reference to the identifier of the interface ? I have no COM interface, but a header file
LPVOID * ppv //that should be a ptrptr to my dialog (OCX) control (?)
Thanks jkr, and all other experts, for some more info on this topic!!