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 / .NET Framework / Interop / May 2008

Tip: Looking for answers? Try searching our database.

Detect if COM Object is installed

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dogman - 07 May 2008 23:48 GMT
Using C#/.NET is it possible to detect if a COM object is
installed/registered. For example, I want to check if the Google Earth COM
interface is installed. I known one method to do this is to just try to
create one of the COM object using the managed wrapper and if it throws an
exception then the COM interface is NOT installed. With Google this will not
work since if you create a google com object it will automaticly start Google
Earth..

There must be a way to query the list of COM object available/registered.
Any guidance would be helpful.

Thanks,
Dogman
Sheng Jiang[MVP] - 09 May 2008 16:08 GMT
COM registration is done by the DllRegisterServer function of the component,
there is no standard about this function's behavior. In theory, the
component is supposed to create its registry entries for all classes
supported in the module. However, it is up to the writer of the function to
decide where to write registry information and what to do besides registry
operations.

Signature

Sheng Jiang
Microsoft MVP in VC++

>
> Using C#/.NET is it possible to detect if a COM object is
[quoted text clipped - 10 lines]
> Thanks,
> Dogman

Rate this thread:







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.