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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:08:43+00:00 2026-05-26T23:08:43+00:00

so my question is relatively simple, can I create VB6 application that references a

  • 0

so my question is relatively simple, can I create VB6 application that references a class in a dll, and then substitute that dll for another at runtime?

Now my intial guess is… no chance in VB6.

So my thoughts turned to a VB.net interop dll. Could I do it in here, and then call the interop dll from the VB?

Again, my guess would be no…. but I’d be happy if someone knew differently.

The only thing that I think would actually work would be DI in .Net, but I’m limited to .net 2, or 3.5 at a big push, so I dont know if that is possible.

So for the background….

I have a dll that a specific site uses, but we dont want to ship that out to everyone. Instead, we want to build a clone dll which just has the interfaces setup so that the VB6 build will complete.
When it gets to the site that needs it, they want to replace the dummy dll, and drop in their version instead.

Note: We do use RegFreeCOM when its gets installed, so I do have the manifest files that I could play around with if needed.

Any ideas would be much appreciated.

Nick

  • 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-05-26T23:08:43+00:00Added an answer on May 26, 2026 at 11:08 pm

    Its a COM dll so its not statically linked to the VB6 exe, so long as the clsids and interface ids are the same in the type library for both DLLs, you can swap them around as you see fit. (If its a VB6 dll this is trivial to do with the ‘binary compatibility’ build option)

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

Sidebar

Related Questions

I have to create an application for testing that is relatively simple. If a
Relatively simple question about handling destructors properly... First I've got a class that's something
I have what should be a relatively simple question that I can't seem to
I have a relatively simple question that I cannot seem to find the answer
Relatively simple question, but I can't find the answer: How can I edit static
I have a relatively simple select statement in a VB6 program that I have
I've got a relatively simple question about asp.net MVC models. I've got a model
I'm sure this is a relatively simple question, and there must be a good
I'm relatively new to web application programming so I hope this question isn't too
I am a relatively new programmer so this may be a really simple question

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.