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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:23:59+00:00 2026-06-09T05:23:59+00:00

I have a tlb file from a third party library. There are many versions

  • 0

I have a tlb file from a third party library. There are many versions of this library, however the functions that I use within the tlb are constant i.e. do not change from one version to the next.

I have added the tlb file to the project as a COM Reference. I can successfully build and call the functions from the third party library.

When I deploy my application, I cannot guarantee that the user will have the same version of the third party installed on their PC as me. When this scenario arises, they get an access violation error (0xc0000005) as soon as a function within the third party library is called.

How can I load the tlb file that is located on the user’s PC at run-time?

  • 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-09T05:24:00+00:00Added an answer on June 9, 2026 at 5:24 am

    You should be able to use C# 4’s dynamic along with Type.GetTypeFromProgID to load the COM object and use it via dynamic binding.

     dynamic obj = Activator.CreateInstance(Type.GetTypeFromProgID(comTypeName));
    
     // Use object via dynamic binding directly
     obj.Foo();
    

    This avoids the need for anything about the COM object version to be compiled into your assembly. As long as you use the correct API, and the methods/etc you use exist, it will function with any version.

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

Sidebar

Related Questions

There is a bug in a third party .DLL file that we're using and
I have this vendor-supplied TLB file, which I've used to generate a Ruby proxy
I have a C# 4.0 application that is referencing a type library from a
I have a (VS 2008) C# project that needs to use a 3rd-party COM
I have a C# COM Enabled Library which talks to a third-party application. I
The problem is, I have a DLL and TLB that I created in C#.NET,
I have a VB6 App that uses a .Net component (via a .tlb reference
I have a VB6 COM DLL. I want to use it from C++. I
I'm trying to use the Microsoft Debug Interface Access SDK from C#. This is
I have a predefined TLB file, with IS8SimulationEvents wrapper method implementations, for instance: inline

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.