Petar,
Using COM objects in C# is a little different than Javascript. You will
need to create an interop library, and then reference it. Once you do that,
you can call it like any other object in .NET.
If you are using VS.NET, then open up the references folder in your
project, and select "Add Reference". On the dialog that comes up, select
the "COM" tab, and select the dll that has the classes you want to use. At
that point, you should have access to the classes that are in the dll.
If you are not using VS.NET then you can use the TLBIMP tool to create
an interop assembly, and then use the classes in the same way.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Petar Popara" <my*****@mail.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I'm looking for C# examples when calling COM objects. JScript example:
var myApp = new ActiveXObject("MyApp.1");
var res = myApp.callMethod1();
I have tried to use Google with keywords "C# COM" but it finds "COM" in
every "somewebsite.com" string. :(