Howto check if a COM is available?

  • Thread starter Thread starter msnews.microsoft.com
  • Start date Start date
M

msnews.microsoft.com

Hi,

My C# application used a COM. When I deploy my application, how to detect if
the target machine has installed the COM?

Thanks,
Max
 
You could either try to detect it before you attempt to use the object, e.g.
by using Type.GetTypeFromProgID(), or you could simply try to instantiate
the COM object and see if you get an exception.

Ken
 
thank you very much,

Ken Kolda said:
You could either try to detect it before you attempt to use the object, e.g.
by using Type.GetTypeFromProgID(), or you could simply try to instantiate
the COM object and see if you get an exception.

Ken


detect
 
Back
Top