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"
 
Back
Top