CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2009
    Posts
    8

    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

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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

  3. #3
    Join Date
    Jun 2009
    Posts
    8

    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

  4. #4
    Join Date
    Jun 2009
    Posts
    8

    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

  5. #5
    Join Date
    Jun 2009
    Posts
    8

    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
  •  





Click Here to Expand Forum to Full Width

Featured