Fog Creek Software
Discussion Board

Welcome! and rules

Joel on Software

detect mappoint activeX COM object

Hi, I have an application that makes use of microsoft mappoint. Right now I'm successfully accessing mappoint via the activeX 9 control. The program is a windows forms program written in C# .NET.

Is it possible for my application to check to see if map point is installed, and if it isn't, the functions using map point are not available?  I'm new to windows development and am wondering where to find more information about doing this sort of thing. Thanks!

Thursday, October 16, 2003

The MapPoint ActiveX control will be registered in the Windows Registry. Go to Start > Run > type "regedit" and click OK. Open HKEY_CLASSES_ROOT and scroll down looking for registry keys along the lines of "MapPoint.Map" (or something - I don't know because I don't use MapPoint) - a machine without these keys will be a machine without MapPoint. So this is basically what you want to do but programmatically using the Microsoft.Win32.Registry classes in .NET.

Duncan Smart
Sunday, October 19, 2003

*  Recent Topics

*  Fog Creek Home