Community of MapPoint and Bing Maps Users and Developers
This is a discussion on Check if Mappoint exists on the PC within the Development forums, part of the MapPoint Desktop Discussion category; Hi, How do i check if the mappoint control is loaded on the PC or not? If the mappoint is ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Check if Mappoint exists on the PC How do i check if the mappoint control is loaded on the PC or not? If the mappoint is not loaded i need to display a message to teh user of my application. I need to do this in code. Thanks in Advance |
| ||||
|
Hi Rowter, In VB6 (look up your language equivalent) I would've done this: On Error Resume Next CreateObject("MapPoint.Application") If Error.Number > 0 Then Msgbox "Notification" Exit Sub End If Michael R Mattys Business Process Developers Mattys Consulting Maps & Custom Programming |
| |||
| Re: Check if Mappoint exists on the PC
Hi Mattys, Thanks for the reply. Today while testing our application we came across a scenario where in Mappoint was installed on the client computer but, our application was not seeing the mappoint. This is the first time mappoint is accessed on that client PC. I tried registering the mappoint using regsvr32 that did nto help. Then i went to Program Files -> Microsoft Mappoint and lauched the application. When i did that, our application could see the mappoint and we did not have a problem after that. Now, to avoid this kind of scenario, we were thinking of checking whether mappoint can be detected by or application or not. If not, we want to popup a message. When i looked at the createobject function on msdn, it says that this code creates a object. dim mapobj = createobject("Mappoint Application") But in the scenario i explained, application errors out the moment it tries to create the object. Thanks |
| ||||
| Re: Check if Mappoint exists on the PC
Hi Rowter, I know exactly what you mean; it's sort of a 'first run' screen. Perhaps the runtime installation outlined in Help would remedy this? Otherwise, you just need to make sure that MapPoint has been opened once. Michael R Mattys Business Process Developers Mattys Consulting Maps & Custom Programming |
![]() |
| Tags |
| check, exists, mappoint |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Check if MapPoint ActiveX control is installed on client | SAgosto | Development | 3 | 05-05-2009 08:23 AM |
| Check for MapPoint with Workbook_Open function | notaphilic | MapPoint Desktop Discussion | 1 | 04-20-2009 05:40 AM |
| C#: MapPoint 2004 - Check Regions | suamikim | MapPoint Desktop Discussion | 20 | 12-24-2006 12:06 PM |
| How do I check to see if there is mappoint installed on a sy | dew1969 | MapPoint Desktop Discussion | 3 | 02-18-2004 10:05 AM |
| How Can I tell if a pushpin Exists already at an address? | Anonymous | MapPoint Desktop Discussion | 1 | 08-27-2003 02:17 PM |