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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:07:05+00:00 2026-06-09T17:07:05+00:00

I was given a requirement from a VB6 programmer (yes they still exist). There

  • 0

I was given a requirement from a VB6 programmer (yes they still exist). There exists a vb6 application that uses a vb6 dll, this dll now uses a .net dll which inturn uses another .net dll. Now my requirement is that the .net dlls should work the same way a vb dll does i.e. once a vb6 dll is registered it can be used by other applications and does not need to be included when rolled out(so I am told). Is there a way to place my .net dlls so that other vb6 apps can use it. From what I’ve seen this only works if my .net dlls are in the same folder as my vb6 exe.

I have read this How Does a COM Program Locate a .NET DLL Registered for COM Interop?

thank you

  • 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-09T17:07:06+00:00Added an answer on June 9, 2026 at 5:07 pm

    COM is pretty infamous for its DLL Hell problem. Registration is global for all programs on the machine. So replacing a DLL usually ends up breaking other programs that use the COM server.

    .NET has a counter-measure for that, when you run Regasm.exe to register the [ComVisible] .NET assembly then it will assume by default that you put the assembly in the GAC. Which automatically buys DLL Hell protection. It is however not uncommon, especially on your dev machine and also done by the IDE, to register the assembly with the /codebase option.

    You’ll now however have a new problem, the CLR has no good mechanism to locate dependent .NET assemblies. The probing path is based on the EXE, the COM client. Which is why copying your dependent assemblies into the EXE install directory works.

    Which is fine for testing, but not a good generic solution you’d want to use when you deploy the server. You cannot predict exactly what EXE is going to use the COM server and where it is located. And messing with the install directory of a program owned by somebody else is often politically difficult.

    Use the GAC, all problems solved.

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

Sidebar

Related Questions

I have a web application that has a requirement to take data from an
Given that the web application doesn't have su privileges, I'd like to execute a
The requirement is as follows: There are N producers, that generate messages or jobs
I am writing an application for iOS and a requirement I have been given
I've just been given a requirement to prevent browsers from saving data entered into
My requirement is that I want to send email from MS SQL Server whenever
I've been given a requirement to impliment some google tracking on an RSS feed.
I have a requirement. Given say Test1,Test2, I have to perform a like operation.
I have a requirement for the generation of a given number N of vectors
This task was actually given to us as homework, but the requirement in the

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.