MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Check if Mappoint exists on the PC

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion > Development

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-08-2010
Member
Green Belt
 
Join Date: Aug 2009
Posts: 58
Check if Mappoint exists on the PC

Hi,


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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 03-08-2010
Mattys Consulting's Avatar
Senior Member
Red Belt
 
Join Date: Dec 2002
Posts: 670
Thumbs up Re: Check if Mappoint exists on the PC

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 03-08-2010
Member
Green Belt
 
Join Date: Aug 2009
Posts: 58
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 03-09-2010
Mattys Consulting's Avatar
Senior Member
Red Belt
 
Join Date: Dec 2002
Posts: 670
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
check, exists, mappoint


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -5. The time now is 05:12 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.0 RC3
MP2K Magazine
Visitor Map



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69