Re: COM Interop
- From: "G Himangi" <info@xxxxxxxxxx>
- Date: Tue, 3 Jul 2007 17:10:06 +0530
Its possible to do this via late-binding if your COM object supports
Automation.
Then you can use :
Type appType = Type.GetTypeFromProgID("Your COM PROGID");
instance = Activator.CreateInstance(appType);
After this, use Reflection to invoke the methods/properties of the COM
object ('instance')
---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
---------
"kris" <krishm18@xxxxxxxxx> wrote in message
news:%235PzkXJvHHA.3588@xxxxxxxxxxxxxxxxxxxxxxx
Hi ,
I am trying to reference a COM dll ( x.dll) from my C# code.
I have to do this programatically at runtime and access its functions.
( Not through Project-->Add Reference->COM-------etc that we do through
visual studio).
Can anyone help me , how i can do this.
Regards
Kris
.
- Follow-Ups:
- Re: COM Interop
- From: kris
- Re: COM Interop
- References:
- COM Interop
- From: kris
- COM Interop
- Prev by Date: Re: .NET remoting and COM strange behavior
- Next by Date: Re: Using .NET COM object in VBA fails
- Previous by thread: COM Interop
- Next by thread: Re: COM Interop
- Index(es):
Relevant Pages
|