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
 

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

Back
Top