Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 3 of 3

2006 and 2009 at same time in VB6

This is a discussion on 2006 and 2009 at same time in VB6 within the Development forums, part of the MapPoint Desktop Discussion category; Is it possible for the same VB6 app to use either MapPoint 2006 or MapPoint 2009 - whichever is installed ...

  1. #1
    Jack Ray is offline Junior Member White Belt
    Join Date
    Mar 2009
    Location
    Montgomery Alabama
    Posts
    1

    2006 and 2009 at same time in VB6

    Is it possible for the same VB6 app to use either MapPoint 2006 or MapPoint 2009 - whichever is installed on a given PC ? We call MapPoint from VB6 apps, to show routes for our customers' customers and to optimize routes, etc.

    Most of our customers have MapPoint 2006 but new customers are buying MapPoint 2009.

    I have 2006 and 2009 installed on my development PC (2009 installed last, in a separate directory). Both run fine from Start menu - however, when I create a VB6 exe and run it on a PC with MapPoint 2006, it blows up.

    Private oMap As MapPointCtl.Map
    Set oMap = MappointControl1.ActiveMap

    The problem is in the above "Set" statement. My PC has 2009 ocx registered (for MappointControl1), but the other PC has just 2006.

    Is there a way to make this work ? I can tell which mappoint (06 or 09) is installed..

    Thanks

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4

    Re: 2006 and 2009 at same time in VB6

    A solution (although inelegant) could be to detect which is installed and shell out and call "mappoint.exe /regserver" to the appropriate path/version... does this help?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    xjack is offline Junior Member Yellow Belt
    Join Date
    Sep 2006
    Posts
    17

    Re: 2006 and 2009 at same time in VB6

    My customers have 3 versions of MapPoint 2004-2006-2009 ... I simply load a generic.ptm file created in the ealiest version and all three work fine ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drive-time radius calculations between 2004 and 2006
    By Ripken in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-24-2009, 09:18 PM
  2. Determine which Mappoint version is installed - 2009/2006
    By cocoflipper in forum Development
    Replies: 3
    Last Post: 01-13-2009, 11:46 AM
  3. Map Point 2009 data into 2006
    By diblasio in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 09-09-2008, 09:23 AM
  4. Side by Side comparison 2006 and 2009
    By jwellman in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-07-2008, 01:02 PM
  5. Distance calculation time (MP 2006) - HELP
    By dsia in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 06-04-2007, 03:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127