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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:01:27+00:00 2026-05-12T19:01:27+00:00

Is there a manual way to call a COM object in the GAC in

  • 0

Is there a manual way to call a COM object in the GAC in .NET, without adding it as a reference?

The reason I ask is I only know how to code in C# and want to call a .NET COM object and tests that its CMO calls are visible, but obviously you can’t add a .NET COM object to a .NET assembly! As you have to reference it, so I was wondering can you call it if its registered in the GAC manually through c# code?

  • 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-12T19:01:27+00:00Added an answer on May 12, 2026 at 7:01 pm
    Type myType = Type.GetTypeFromProgID("IMyLib.MyClass");
    object obj = Activator.CreateInstance(myType);
    object[] args = new object[2];
    args[0] = "Hello";
    args[1] = 3;
    myType.InvokeMember("MyMethod", BindingFlags.InvokeMethod, obj, args);
    

    In .Net 4 something like this

    Type myType = Type.GetTypeFromProgID("IMyLib.MyClass");
    dynamic obj = Activator.CreateInstance(myType);
    obj.MyMethod("Hello", 3);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to control and manual specification for start of teaser ?.
I was wondering if there's a way (even a manual one) to setup an
The MySQL manual (http://dev.mysql.com/doc/refman/5.1/en/charset-syntax.html) says: There are default settings for character sets and collations
Is there a way to enter browser mode in a parallel foreach call? I've
Is there a recommended reference manual for python that's better than the official docs?
Is there a manual for cross-compiling a C++ application from Linux to Windows? Just
In Algorithm Design Manual , there is such an excise 4-26 Consider the problem
Is there an FTP browser hiding away in NetBeans 6.1? The help manual doesn't
Is there a .dll version of the inclued extension for PHP ? The manual's
In the Quickbooks SDK Manual, there is a section called "Using ReceivePayment for Credit

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.