How do I call a DCOM object?

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
Back
Top