-
December 29th, 2011, 04:40 AM
#1
Out process control
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
-
December 29th, 2011, 04:53 AM
#2
Re: Out process control
How to load an out-of-process control.
CoCreateInstance or any corresponding atl/comdef smartpointer CreateInstance flavor should do.
Best regards,
Igor
-
December 29th, 2011, 05:52 AM
#3
Re: Out 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
-
December 29th, 2011, 06:35 AM
#4
Re: Out process control
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
-
December 29th, 2011, 06:55 AM
#5
Re: Out process control
Maybe I should write: How to embed out of process com control in c++
like 'AtlAxCreateControlLic' function is doing to in process com controls?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|