Strange COM Issue
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Strange COM Issue

Hybrid View

  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Strange COM Issue

    I have been using an ActiveX control (lcaobjsv.ocx) in VB6 without any issue. When I try to implement the same functionality in C++ i am getting Class not registered returned from the CoCreateInstance Function. I have queried the registry to find that that the clsid associated with the program id is not present in the registry and is not installed even we calling regsvr32. Has any body experienced annything like this before, and does anyone know how vb is able to instantiate a COM Control without using the clsid.

    Thanks

    Chris

  2. #2
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Strange COM Issue

    Any exposed classes will be named in the registry. Have you searched for those instead of the CLSID?
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

  3. #3
    Join Date
    Oct 2012
    Posts
    2

    Re: Strange COM Issue

    The program Id is in the registry and it specifies a clsid associated with that program id. However, one of the parameters that must be passed to CoCreateInstance/CoGetClassObject is the CLSID, at which point (as I understand it) the function queries the registry for the CLSID, which isn't present in the HKCR\ClsId section.

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    Re: Strange COM Issue

    Is the ocx being registered with admin rights? Have you tried both with and without specifying OLESelfRegister?
    Please remember to rate the posts and threads that you find useful.
    How can something be both new and improved at the same time?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center