How to load an out-of-process control.
I have created EXE com object with a control inside.
I don't know how to load it, CreateControl / AtlAxCreateControlLic etc,
all these functions fail cause they except an in-process control
please help,
Amirmir
Printable View
How to load an out-of-process control.
I have created EXE com object with a control inside.
I don't know how to load it, CreateControl / AtlAxCreateControlLic etc,
all these functions fail cause they except an in-process control
please help,
Amirmir
CoCreateInstance or any corresponding atl/comdef smartpointer CreateInstance flavor should do.Quote:
How to load an out-of-process control.
When you call CoCreateInstance its just create the object and the control isn't inside its container,
thats why you create in-process controls with CreateControl and not CreateInstance.
It more then just creating the COM object its handling the HWND etc
CoCreateInstance will create the object, but when you write
CreateControl you create it inside your application GUI, not just creating a COM object
but all the other UI issues,
When I put the exe com control CLSID inside HTML OBJECT tag it is created inside the page
lake any other ocx dll do when you load it via CreateControl / CreateControlLicEx
Whay is the equivelent CreateControlLic for EXE Controls ??
10x
Maybe I should write: How to embed out of process com control in c++
like 'AtlAxCreateControlLic' function is doing to in process com controls?