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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:31:27+00:00 2026-06-12T04:31:27+00:00

The majority of my experience is with high level languages like Java and VB.NET.

  • 0

The majority of my experience is with high level languages like Java and VB.NET. I do have some experience with C++ (at university).

I understand the difference between a COM DLL and a DLL produced by a .NET compiler. I don’t fully understand the difference between a COM DLL and a Windows DLL generated by the C and C++ compiler.

I want to use C++ DLL in a .NET program. I have managed to get this working. My question is specifically: What is the difference between a DLL produced by C++ and a DLL produced by VB6 (COM based).

I have spent an hour Googling this and looking on MSDN. I though I would find my answer without having to ask a question, but I have not.

  • 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-12T04:31:28+00:00Added an answer on June 12, 2026 at 4:31 am

    There’s a giant difference between the two. The list is too long to reproduce accurately in an SO post, I’ll try to hit the highlights:

    • A C++ DLL must export every function or class it wants to make available to the client code. A COM DLL only exports 4 functions with well-known names and behavior
    • An application that uses a C++ DLL must describe that DLL’s interface at link time, a COM server is bound at runtime
    • An application that uses a C++ DLL must allow Windows to find the DLL at startup time, usually by having the DLL in the same directory as the EXE or on the Path. A COM DLL is found without the client app specifying where it is located. The registry is used at runtime to locate the DLL
    • A COM server doesn’t have to be a DLL. It can be anything, including a seperate process on the same machine or an executable located on another machine half-way around the world. The client code is oblivious to where it is located

    Specific to the Automation subset of COM:

    • A COM server is usable by any language that supports COM. Which in Windows is just about any of them.

    The last bullet is possibly what trips you up about thinking that you understand the difference between a COM dll and a .NET dll. They have nothing at all in common, but .NET is pretty good and inter-operating with COM servers. The Tlbimp.exe utility is quite adept at papering over the differences.

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

Sidebar

Related Questions

I see the majority of WPF Ribbon examples out there use some code like
The pattern I see in the majority of .NET MVC examples is to have
The majority of material I have found regarding DLR is related to IronPython. Can
I have written the majority of my project in C++. However there are several
NOTE: I have solved the majority of this problem but have run into a
I currntly use M2Eclipse for the majority of my Java development and Pydev for
I'm brand spanking new at Spring and have gotten a majority of the knowledge
As my experience with .Net really began as working on existing in-house applications for
Background: 3-4 weeks experience in Silverlight3/C#/.Net and about 3days worth with the RIA Services
We have some clients who, upon attempting to submit a form, are recieving 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.