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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:06:51+00:00 2026-05-13T14:06:51+00:00

We have a .Net DLL. We need to call this DLL from a VB

  • 0

We have a .Net DLL. We need to call this DLL from a VB Application. What are the procedures we need to follow?

  • 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-13T14:06:52+00:00Added an answer on May 13, 2026 at 2:06 pm

    The last time I did this, it got so thorny (some irrelevant issues involving COM+, deployment, etc tripping us up) that I actually ditched the COM boundary, and re-wrote the interface as a POX web-service talking to a handler (ashx) in the .NET. I would give serious consideration to this approach… (unless you need to share windows handles, or similar)


    If you really want a COM API, you need to generate a COM-callable wrapper; this is largely a case of:

    • ensuring the necessary types / methods are public
    • marking the assembly / types as [ComVisible(true)]
    • using tlbexe to export the type library if you need
    • using regasm to register the type in COM (either in the GAC or from a fixed location on a drive)

    After that your VB6 should just see it as another COM package, but I strongly recommend that you limit this interface to the bare minimum; it isn’t change-friendly, and the VB6-style interface forwarding (i.e. where you can get away with adding a method, without breaking binary compatibility) is not here.

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

Sidebar

Related Questions

I have a .NET dll which needs to read it's config settings from it's
I have created a .NET DLL which makes some methods COM visible. One method
I have a c# .NET DLL compiled against the .NET 2.0 framework. A customer
I have a .net library dll that acts like a functional library. There are
I have a set of calculation methods sitting in a .Net DLL. I would
I have 3 .net projects. Project1.dll is generated by a VS2008 project. Project2.dll is
I have a dll that contains a dot net assembly - common intermediate language.
I have a .Net desktop application with a TreeView as one of the UI
UPDATE - No need to answer this now, I have solved below. Hi, I'm
I have a challenge similar to creating-my-own-plug-ins-for-my-own-project-in-c# and late-loading-a-net-plugin-dll , with the added headache

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.