CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2006
    Posts
    384

    COM Registration

    A COM DLL is being registered using the regsrv32 command from the command line. There is no error message being displayed as a result of execution of the command. How can one determine if the COM registration has indeed been successful ?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: COM Registration

    When you start the RegSvr32 process, call GetExitCodeProcess and check the return code.

  3. #3
    Join Date
    Jan 2006
    Posts
    384

    Re: COM Registration

    Hi Arjay, this command is being executed from the command line on the command prompt and not from code.
    Is there anyway to look at some location in the registry or something to check if the registration is successul

  4. #4
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: COM Registration

    open registry "regedit" and try searching for your COM class name. UUID or some other reference identity in the registry .. if migh tbe present if it is registered properly.

  5. #5
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: COM Registration

    Quote Originally Posted by humble_learner View Post
    Hi Arjay, this command is being executed from the command line on the command prompt and not from code.
    Is there anyway to look at some location in the registry or something to check if the registration is successul
    Did you write the COM object?

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

    Re: COM Registration

    Is there anyway to look at some location in the registry or something to check if the registration is successul
    You have to provide some definition to 'registration success' thing.

    PS. I can imagine only one reliable way: running test application that creates coclass object and makes sure it's functioning.
    Best regards,
    Igor

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