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
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

MP2002 and 2004 installed on same machine problem

This is a discussion on MP2002 and 2004 installed on same machine problem within the MapPoint Desktop Discussion forums, part of the Map Forums category; I posted this on the newsgroup but got no replies so if anyone has ANY thought i would much appreciate ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    MP2002 and 2004 installed on same machine problem

    I posted this on the newsgroup but got no replies so if anyone has
    ANY thought i would much appreciate them:

    Since installing MP2004 on a machine that only ever had MP2002 on it I have a problem.
    (did not replace 2002 but installed in different directory so now have both
    versions on machine)

    // related info //
    I am writing an application that uses mappoint as an ole object using the vb programming tools writing in borland c++ builder
    eg. OleContainer1->CreateObject(data->mappointVersion,False);

    // the problem //
    When i tell it to launch the 2002 version using
    "Mappoint.Map.EU.9" as the mappointVersion (as opposed to EU.11 for 2004)
    it ALWAYS loads up mappoint 2004 without fail and cant get it to load 2002
    unless I open it on its own through the start menu.

    Why is this please?
    ...... it is causing me a LOT of trouble and time

    Many thanks
    Shaun

  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
    When I've created COM objects (via C++), the COM object name for the application is of the form:

    "MapPoint.Application.EU.9"



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

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    2002 and 2004 on sam machine

    Thanks for that but if i try

    MapPoint.Application.EU.9

    it is unable to use this and get error message
    same for .EU.11

    Any other thoughts... anyone?

  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
    "MapPoint.Application.NA.11" is the example given in the help that comes with MapPoint.
    (and EU for European version).

    So I suspect the problem is with the C++ Builder environment.
    I've never used it before, but I think you have to 'import' the COM classes somehow??


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

  5. #5
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Strange thing is I'm now having the same problem! MSVC (but WTL rather than MFC).

    Creating objects with names like "MapPoint.Application.NA.11" works without error, but "MapPoint.Application.NA.9" loads v11 (ie. 2004).

    I think we have a bug here!

    Incidentally, I also have EU.9 and that loads okay - but I don't have EU.11 installed.

    I'm actually working on code to allow a user to select which version my app calls. I think I'm going to amend my code so it only lets the user select the latest&greatest that is available for each geographic region.

    Another strange one, not programmatic this time: If you have 2004 Help open, and then try to open the Help in v2002, it just gives you the 2004 window. Closing 2004, and retrying gives you the correct version.


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

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    2002/2004 bug

    Thanks.
    I'm glad that someone else has a similar problem.
    does anyone know where we go from here in
    recitfying the problem?
    microsoft?

    Shaun

  7. #7
    techecho's Avatar
    techecho is offline Junior Member White Belt
    Join Date
    May 2004
    Posts
    7

    name each version then API

    are there different ocx files for the two versions
    and are both loaded in app

    OR is run required program be direct call
    c:\program\mp.exe acceptable

    crud but rud is my way

  8. #8
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    2002 and 2004 installed on same machine

    >are there different ocx files for the two versions
    >and are both loaded in app

    Yes. the ocx files are different not sure what you mean about
    them being both loaded in app?

    OR is run required program be direct call
    c:\program\mp.exe acceptable

    If you are asking if i can use a commandline style command
    to run up mappoint then this unfortunatley is not an option
    it needs to be embedded in the application

    Thanks. S.

  9. #9
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    2002 and 2004 installed on same machine

    Recap: mp running in app as embedded ole object but will only run 2004
    even if tell it to run 2002 when both are installed on same machine.

    If i re-install 2002 then it will only run 2002
    and then if i re-install 2004 it will only run 2004!!

    so what central reference is it changing in the registry!?
    why cant i tell it which version to use and it use that version!!!????

    Anyone?

  10. #10
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    I think the big problem is, that the two different OCX with Mappoint 2002 and 2004 are using identical registry keys for their controls !

    So itīs no problem to run the two different exe-files, but using the ocx, you can only use the last installed version !

    MapControl 9.0 and 11.0 have the same keys. example from my app :

    IID_MapPoint2004_IMappointCtrl = '{65DEDD2D-938D-4083-80B5-9491B073B7AE}'
    IID_MapPoint2002_IMappointCtrl = '{65DEDD2D-938D-4083-80B5-9491B073B7AE}'

    IID_MapPoint2002__MapPointUtilities = '{33A1C7CE-9E37-4A11-8213-0413A20C66BA}'
    IID_MapPoint2004__MapPointUtilities = '{33A1C7CE-9E37-4A11-8213-0413A20C66BA}'

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Have a problem with 2004.
    By PC7395 in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-11-2006, 08:16 PM
  2. MapPoint 2004 must be installed
    By Hollywod07 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-03-2006, 07:32 PM
  3. Mappoint 2004 Line thickness problem ?
    By Danny in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-30-2005, 01:27 PM
  4. Mappoint 2004 USA installation problem
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 04-11-2005, 10:55 AM
  5. MAPPOINT 2004 WON'T LOAD ON 98 MACHINE
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-18-2003, 01:50 PM

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