How do I call a DCOM object?

G

Guest

Does anyone know where I can find an example of calling a DCOM object from a
..NET client? All the examples I'm finding are telling me to use
Activator.Getobject, but I can't figure out which URL to use.

Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

Chris,

I would call the static GetTypeFromProgID method on the Type class,
passing the program id, and the server that is hosting the object. Then,
you can pass the type to the CreateInstance method on the Activator class to
get a proxy to the type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top