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 8381287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:39:53+00:00 2026-06-09T16:39:53+00:00

I have a .Net COM visible dll and a VB6 dll. I registered the

  • 0

I have a .Net COM visible dll and a VB6 dll. I registered the .Net dll on the GAC and registered the VB6 dll. My question is can the VB6 dll reference the .Net dll that’s in the GAC. If yes, how can this be done? Normally I would use the regasm on the .Net dll and everything would be fine but now the .Net dll is in the GAC so I don’t think this method would be possible.

  • 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-09T16:39:54+00:00Added an answer on June 9, 2026 at 4:39 pm

    There isn’t anything special about it that would stop this from working if you used the GAC or try to use it from a VB6 DLL project. If you want to write early bound code (actual type names, auto-completion works) then the VB6 IDE needs a type library. They are normally embedded inside the DLL but that’s not the case for .NET [ComVisible] assemblies.

    Create a type library with Tlbexp.exe or with Regasm.exe’s /tlb command line option. Like:

     regasm foo.dll /tlb:foo.tlb
    

    You can now use the type library in your VB6 project. In the VB6 IDE, use Project + References, click Browse and navigate to the foo.tlb file.

    Also note that while the GAC is a good way to avoid DLL Hell, you typically don’t use it on your dev machine since it pollutes the machine’s GAC. Use the Regasm /codebase option to have it registered in the directory the DLL is stored in, no need for the GAC then. You do get a warning from Regasm when you do this, trying to remind you that you are risking DLL Hell. But that’s a problem for your user, not for you. So you can safely ignore the warning.

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

Sidebar

Related Questions

I have a COM visible .NET DLL file that is being used as an
What is a COM visible .net 2.0 dll? (I have got one) Can I
I have a .NET v2.0 Dll that exposes a few classes to COM. The
We have an old asp application that instantiates a .NET com visible class. In
I have a .NET (C#) addin that uses a COM Shim dll to load
I have a .NET assembly for a COM-visible component that I want to use
I have created a .NET DLL which makes some methods COM visible. One method
I have a C# dll exposed to vb6 via com-interop. This is all working,
I have a .NET library visible in COM, and it's called from a vb6
I have a .NET user control registered as COM. I use regasm to register

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.