Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / November 2006

Tip: Looking for answers? Try searching our database.

checking if a com component exists or not

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abubakar - 08 Nov 2006 07:14 GMT
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.
Bruno van Dooren [MVP VC++] - 13 Nov 2006 21:07 GMT
> My app uses a component (msxml3 and some other compression com
> components). The app crashes if its required components are not installed
[quoted text clipped - 4 lines]
>
> 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?

Signature

Kind regards,
   Bruno van Dooren
   bruno_nos_pam_van_dooren@hotmail.com
   Remove only "_nos_pam"


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.