checking if a com component exists or not

  • Thread starter Thread starter Abubakar
  • Start date Start date
A

Abubakar

Hi,

My app uses a component (msxml3 and some other compression com components).
The app crashes if its required components are not installed on a machine. I
want to check, while app running, if there is some decent way of knowing if
I dont have the required component on the machine where app is running so
that I dont try to use it and show up appropriate message.

Using vs2k5 vc++, all unmanaged/native.

regards,

-ab.
 
My app uses a component (msxml3 and some other compression com
components). The app crashes if its required components are not installed
on a machine. I want to check, while app running, if there is some decent
way of knowing if I dont have the required component on the machine where
app is running so that I dont try to use it and show up appropriate
message.

Using vs2k5 vc++, all unmanaged/native.

Hi,

Have you tried to just do a CoCreateInstance of the desired object (using
the appropriate GUID) and see if that succeeds or not?

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

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