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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:22:06+00:00 2026-05-24T16:22:06+00:00

I have a VB6 Standard EXE with no embedded type library. I’d like to

  • 0

I have a VB6 Standard EXE with no embedded type library. I’d like to generate an interop assembly from that executable and reference it from a .NET project. This should allow me to instantiate COM classes defined in the executable from .NET.

Since I don’t have a type library, I tried creating the IDL from scratch, used MIDL to generate a typelib, and generated an interop assembly from the typelib. I can reference the interop assembly from my .NET project, but still can’t instantiate any COM classes. I believe my interop assembly doesn’t know about the EXE and therefore can’t actually execute the code I call.

I’ve already successfully instantiated COM classes defined in VB6 ActiveX DLLs from .NET, where the interop assemblies know the ClassID of the corresponding COM DLLs containing the implementation.

In the IDL I’m creating from scratch, what should I be using as the UUID for the library definition? Should this refer to the EXE somehow?

[
    uuid(WHATUUID-SHOU-LDII-NCLU-DEHEREXXXXXX),
    version(1.0),
    helpstring("for TLB on EXE")
]
library MyExe { ... }

These questions are close, but I’m still stuck. Is what I’m trying to do possible? I’d rather avoid late-binding. Thanks for any help.

  • 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-24T16:22:07+00:00Added an answer on May 24, 2026 at 4:22 pm

    The interop library is not supposed to know about the EXE, that’s how COM works. It is the CLSID key that tells how the server is supposed to be started. InProcServer32 vs LocalServer32.

    There are a million things that can go wrong when you write your own IDL. Guessing the proper guids for the interfaces and coclasses is non-trivial if you don’t have a type library. If you get it wrong then you can’t create the COM class. I’m pretty sure that the type library is embedded in vb6 ActiveX .exes, there’s no option that I remember to not embed it. To verify, use Visual Studio’s File + Open + File and select the .exe. You’ll get the embedded resources, you’re happy if you see TYPELIB. Open the node, right-click ID 1 and use Export to export it to a .tlb file.

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

Sidebar

Related Questions

I have a .NET library visible in COM, and it's called from a vb6
I have a VB6 program that someone recently helped me convert to VB.NET In
I have a VB6 dll that is trying to create a COM object using
I have a VB6 COM component which I need to call from my .Net
I have a VB6 application that needs to update it's self. For this purpose,
I have a VB6 application that needs to be installed on Windows Vista as
In my real application, I have a VB6 DLL which is called from classic
I have a VB6 project that references COMSVCSLib and one of the methods makes
I have a .NET (FW 2.0) library which is used by a COM (vb6)
I have VB6 application , I want to put some good error handling finction

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.