Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:29:58+00:00 2026-06-08T19:29:58+00:00

I have a COM DLL written in unmanged C++, and compiled with VS 2010.

  • 0

I have a COM DLL written in unmanged C++, and compiled with VS 2010. I can register the DLL using regsvr32 and I can invoke it via VBscript.

When I try to add a reference to it, while creating a C# client, I don’t see the COM object listed in Add Reference -> COM tab. If I manually browse to the DLL and try to select it, it says that the DLL is not a valid assemlby or COM component.

Now, I can use tlbimp tool to generate an interop DLL and use that to add as a reference to my C# client. And everything works fine.

My questions are:

  1. Why the original COM is not listed in COM tab in Add Reference dialog when it’s registered via regsvr32?
  2. Why does VS IDE think that it’s not a valid COM when I can invoke it from VBScript and C++ native code?
  3. What exactly does tlbimp do which the IDE can’t do?
  4. What do I need to read further to improve my understanding of the
    type libraries and interoperability at play here?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:30:00+00:00Added an answer on June 8, 2026 at 7:30 pm

    Looks like a typelib issue — your COM classes may be have been registered correctly, but your typelib probably is not. Maybe you forgot to invoke RegisterTypeLib from within your DllRegisterServer function?

    Referring to your questions:

    1. The dialog looks for registered typelibs, not for COM classes

    2. VBscript invokes IDispatch and does not care about typelibs. tlbimp does not care about IDispatch and requires a typelib

    3. You passed the DLL name to tlbimp — so tlbimp knew how to get hold of the typelib. VS, in contrast, refers to the registry which lacks the approriate registration data

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a COM dll, and wish to register it using regsvr32 myComdll.dll
I have a COM dll written in vb6. When I try to create a
I have an application written in PHP that uses a COM dll written in
I have a COM inproc DLL that we are using in our product. Now
I have a win32 COM dll. I want to register this dll for different
I can't see it as mentioned here: http://www.c-sharpcorner.com/uploadfile/mahesh/dll12222005064058am/dll.aspx Do I have to activate somehow
We have a system that makes a use of 3rd party COM DLL written
I have a 32 bit COM component DLL and this DLL is written in
I have an ATL/COM-based DLL, written in VC++ 6.0. Until recently, there was a
I have written a C# .NET Com callable wrapper DLL. I signed it with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.