Community of VE/MapPoint Users and Developers
This is a discussion on C#: How to find out if MapPoint is installed? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, How can I find out from within a C# program whether MapPoint is installed or not? Bye, MD2000...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Hi, Something like this: Code: public Main()
{
InitializeComponent();
try {
MP.NewMap(GeoMapRegion.geoMapEurope);
} catch (Exception e) {
MessageBox.Show("Mappoint not installed or incorrect version");
//Application.Exit(); does not work at this point
Win32.PostMessage(Handle, WM_QUIT, 0, 0);
}
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
|
I have tried something similar in my code: catch (Exception e) { MessageBox.Show("Error loading Mappoint: " + e.Message+". Are you sure it is installed?"); } However this line generates: "AccessViolationException was unhandled" "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Any suggestions? (I have been testing different ways to have mappoint corrupted/not installed, in this case I renamed "MapPoint.exe", to "asdf.exe" which correctly generates a FileNotFoundException) Thanks |
![]() |
| Tags |
| find, installed, mappoint |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MapPoint 2004 must be installed | Hollywod07 | MapPoint 2006/2009 Discussion | 1 | 04-03-2006 07:32 PM |
| mappoint installed detection | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-29-2004 04:47 PM |
| Installed Street & Trips 2003 won't run! | Anonymous | MapPoint 2006/2009 Discussion | 1 | 02-24-2004 10:27 AM |
| How do I check to see if there is mappoint installed on a sy | dew1969 | MapPoint 2006/2009 Discussion | 3 | 02-18-2004 11:05 AM |
| installed mp 2002 from cds, but does not run! help? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 01-19-2003 07:40 PM |