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 5 of 5

MapPoint Europe And North America

This is a discussion on MapPoint Europe And North America within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hello, I would like to know if it is possible to add reference to MapPoint Europe end North America in ...

  1. #1
    Sany is offline Junior Member White Belt
    Join Date
    Sep 2005
    Posts
    1

    MapPoint Europe And North America

    Hello,

    I would like to know if it is possible to add reference to MapPoint Europe end North America in a same Visual Studio Project???

    Thank you for the answers
    Sany

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    You should be able to. You will need to refer to the application objects with the "EU" and "NA" references explicitly.
    Also, I doubt you will be able to mix objects between the two applications.

    Eg. the Location object will be the same for both (assuming the same versions), but it is probably asking for trouble if you get a Location object from one and then pass it to the other.


    My GridImp product allow a user to choose which Europe or North American if both are detected. It doesn't try to run both simultaneously though.


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    dpopken is offline Junior Member White Belt
    Join Date
    Nov 2009
    Posts
    8

    Re: MapPoint Europe And North America

    I have a similar situation and was intrigued by your comment:
    "You should be able to. You will need to refer to the application objects with the "EU" and "NA" references explicitly."

    I have a C#.Net VSTO (Visual Studio Tools for Office) application that I am modifying to accomodate a European version. That is, some of my users will have the NA version of my application, along with Mappoint North America. Other users will have the EU version of my application, along with Mappoint Europe. I am not using controls, but the COM API's.

    1. How do I refer to application objects with NA or EU as you suggest? I create an application object with:

    m_myApp = new MapPoint.ApplicationClass();

    There does not seem to be a parameter for EU/NA

    2. Can I have both versions installed simultaneously on my developer machine? How about the user machine?

    Do you know of any other sources of info for my situation?

    Thanks!
    Doug

  4. #4
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    Re: MapPoint Europe And North America

    Well you have the name of the Application object's class wrong.

    Here's some code cut&pasted from the docs (yes it is VB6, but you should see the correct object names):

    Code:
        Dim MPAppNA As MapPoint.Application
        Dim MPAppEur As MapPoint.Application
        Set MPAppNA = CreateObject("MapPoint.Application.NA")
        Set MPAppEur = CreateObject("MapPoint.Application.EU")
    Note that when you reference the MapPoint classes in your project (assuming a Visual Studio type environment, here), you will be able to choose the specific set of objects you want - ie. including the NA/EU and the version.
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  5. #5
    dpopken is offline Junior Member White Belt
    Join Date
    Nov 2009
    Posts
    8

    Re: MapPoint Europe And North America

    Right, selecting one reference versus the other (when both are installed on the developer machine) seems to do the trick.

    But there is no need to refer to EU or NA when creating the application object nor is there a capability to do so in the C# API. (You need to venture out from the VBA jungle some time )

    In case any one is wondering I was successful in creating the EU version and deploying on a machine that has EU installed and one that has both EU and NA installed. When both are installed the application seems to know which maps to operate upon just from the changed reference.

    Warning,:you may need to set the map scale to kilometers in the code as otherwise it appears to go by your computers default location settings. This and other little details can be handled by a global flag in you application.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ActiveX Error 16398 - Mappoint North America can't run.....
    By Mike2005 in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 11-17-2010, 09:12 AM
  2. choice between mappoint North America and mappoint Europe
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-25-2005, 03:30 PM
  3. Merging North America and Europe
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 07-21-2004, 10:08 AM
  4. Mappoint North America 2004 and the IPaq
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-04-2004, 10:03 AM
  5. I have MapPoint 2002 Europe & North America; how c....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-24-2001, 05:50 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