Re: COM Interop



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






.



Relevant Pages

  • Re: how to write a program that takes arguments from commandline?
    ... I assume argc contains the number of ... programs are often invoked from a shell ... Shells *can* use spaces to delimit arguments, ... like for constructing the arguments for the programs you invoke. ...
    (comp.lang.c)
  • Looking for a extensible shell for debug purpose
    ... process using IPC. ... Now I want to add a thread to this program to start shell, ... extensible shell, to enter command, then invoke the corresponding ... like lua, can embedded into the program, and by running lua script to ...
    (comp.os.linux.development.apps)
  • Re: without shell
    ... >> These commands invoke shell indeed. ... > sequence rather than a single string. ... On UNIX, os.popen is posix.popen, is a simple wrapper ...
    (comp.lang.python)
  • Re: COM Interop
    ... use Reflection to invoke the methods/properties of the COM ... Shell MegaPack: GUI Controls For Drop-In Windows Explorer like Shell ... I am trying to reference a COM dll from my C# code. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Keep getting error with email validation script
    ... What is unsafe about the systemfunction? ... Using the shell is certainly unsafe, but you can use the system ... This is because systemunder *nix uses the fork/exec model. ... If you use the form of systemthat does not invoke a shell, ...
    (comp.lang.perl.misc)