CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2016
    Posts
    10

    Using OCX in ALT/COM server..

    Hi,

    Can anyone let me know if we can use the MSSCript.ocx in a COM server.

    When I add the MSSCript.ocx changes in my COM Server code ,my COM server is not registering .

    I also tried registering OCX also before registering my COM dll.

    Actually the flow is like this--> EXE->DLL->COM DLL->Using OCX

    Please help me on this...

    Thanks,
    Last edited by AbhiHari; April 5th, 2016 at 06:38 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: Using OCX in ALT/COM server..

    Victor Nijegorodov

  3. #3
    Join Date
    Mar 2016
    Posts
    10

    Re: Using OCX in ALT/COM server..

    Quote Originally Posted by VictorN View Post


    Thanks Victor,,,

    The link is about issue in Registering MSScript.OCX, I was able to regsiter the OCX properly.

    But the issue here is to register the COM DLL which is using OCX

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

    Re: Using OCX in ALT/COM server..

    Quote Originally Posted by AbhiHari View Post
    But the issue here is to register the COM DLL which is using OCX
    You never explained what the registration failure looks like. And what way you made sure the OCX registration succeeded.

    Did you debug your activex dll registration at all?
    Best regards,
    Igor

  5. #5
    Join Date
    Mar 2016
    Posts
    10

    Re: Using OCX in ALT/COM server..

    Quote Originally Posted by Igor Vartanov View Post
    You never explained what the registration failure looks like. And what way you made sure the OCX registration succeeded.

    Did you debug your activex dll registration at all?


    the command regsvr32 keep on running, seems like it has hung,, Yes OCX I was able to register... No I don't have code to debug the activex dll...

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

    Re: Using OCX in ALT/COM server..

    Quote Originally Posted by AbhiHari View Post
    the command regsvr32 keep on running, seems like it has hung,,
    Now it's time to attach to the process and see where it hangs.

    Yes OCX I was able to register...
    You were able to see the message. But were you able to run the COM server?

    No I don't have code to debug the activex dll...
    You have the code of your dll, don't you? So you have the code to debug.
    Best regards,
    Igor

  7. #7
    Join Date
    Mar 2016
    Posts
    10

    Re: Using OCX in ALT/COM server..

    Thanks Igor,,,

    I have changed the design, and moved OCX out of COM dll...

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

    Re: Using OCX in ALT/COM server..

    Quote Originally Posted by AbhiHari View Post
    Thanks Igor,,,

    I have changed the design, and moved OCX out of COM dll...
    Look, there's nothing bad in using one activex from another activex. Absolutely. Those are just dlls loaded quite a special way. Besides, using COM object creates no dependency that would affect the first (your) activex loading. Moreover, registration of activex does not touch the code more than required for creating proper registry entries, and surely must not depend on other activex species used in the code.

    So, the bottom line is: as long as you experience issues with your activex registration, you have no option but debug the activex registration code. Debugging in-proc COM server is identical to debugging regular dll. And no matter what framework your activex is based on (MFC or ATL), the activex can be debugged without any problem.
    Best regards,
    Igor

  9. #9
    Join Date
    Mar 2016
    Posts
    10

    Re: Using OCX in ALT/COM server..

    Quote Originally Posted by Igor Vartanov View Post
    Look, there's nothing bad in using one activex from another activex. Absolutely. Those are just dlls loaded quite a special way. Besides, using COM object creates no dependency that would affect the first (your) activex loading. Moreover, registration of activex does not touch the code more than required for creating proper registry entries, and surely must not depend on other activex species used in the code.

    So, the bottom line is: as long as you experience issues with your activex registration, you have no option but debug the activex registration code. Debugging in-proc COM server is identical to debugging regular dll. And no matter what framework your activex is based on (MFC or ATL), the activex can be debugged without any problem.

    Thanks Igor for educating me on this topic...

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