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 2 of 2 FirstFirst 12
Results 11 to 18 of 18

switching from 04 activex to '06 in .NET

This is a discussion on switching from 04 activex to '06 in .NET within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I'm not sure. I searched the programming help and I could not find anything of this feature in it....

  1. #11
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I'm not sure. I searched the programming help and I could not find anything of this feature in it.

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

    Update

    Wilfred ...

    My 2004 App seems to workly perfectly on my new 2006 client without any changes ... I did NOT install 2006 on my development machine ...

    I am programming in VB.NET (VS 2003) ... I reference the 2004 Mappoint Interop dlls but do not register them, and I include the 2004 Mappoint .ocx and .dll in the executable path ... more than 10 forms use the Mappoint Control and the location object is called numerous times ... I always load Mappoint into the control using a template (.ptm) file created in 2004 ...

    2006 seems to run a bit slower, but so far has not been a problem ...

  3. #13
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    That is interesting news
    Probably the way around will work also (using MP2006 ocx + dll's on a machine with MP2004 registered) sam way. It is word to test it.

    Which *.dll 's do you include in execuable path ?

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

    Update

    ... Interop.MapPoint.dll ... version 1.0.0.0 ...
    and
    ... MapPointControl.ocx ... version 11.0.18.1900 ...

    are both placed in the executable path (the same directory as the executable) during installation ...

    References in the program are to ...

    ... AXInterop.MapPoint.dll ... version 1.0.0.0 ...
    and
    ... Interop.Mappoint.dll ... version 1.0.0.0 ...

    Setup added as a detected dependency the MappointControl.ocx

  5. #15
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Those *.dll's are normal in the exe path, but not the *.ocx of course. I did the test, registered MP2004, did a rebuild, registered MP2006, copy the *.ocx version 2004 into the executable path.

    Maybe I forgot something, or maybe it is different in C#. Will try again one of these days.

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

    Update

    I can't imagine that the programming language would make this difference ... I would rather think that the fact that 2006 was never installed on my development machine has something to do with it ...

    I have noticed that 2006 has MANY more registry entries that 2004 ...

    --Jack

  7. #17
    sandycurrie is offline Junior Member White Belt
    Join Date
    Aug 2006
    Posts
    1
    Hey guys,

    I seem to be having the same problem, where I have recently upgraded from MP2004 to MP2006. Currently I have both installed on my dev computer and wish to compile my application for one or the other versions with as little code changing as possible.

    Wilfried: How are you referencing MapPoint in your application, when using the batch file? I've tried a different method where you dig into the .vbproj file and edit the references from there, but learned that the GUIDs for each library are stored there. So even though you register the desired version of MP, how does that change the references within VS to the correct library?

    Thanks in advance!

  8. #18
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I had to search for that because by default VS copy it all in the project folder. I almost discoverd it by accident how to do

    If you right click the project, then 'Add' then 'Existing item', after selecting it dont click OK, but near the button is a little arrow. Clicking it brings up a popup menu and you can click 'Add as link'. Then it is not copied and the version class can be used by all projects.

    Maybe there are other approach as well. Maybe I need to RTFM

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. New to MP/using activeX
    By lucci56 in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 07-16-2006, 04:42 PM
  2. Switching from Staging to Production
    By Jeff Smith in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 03-29-2005, 09:06 AM
  3. switching from 2004 to 2002
    By Wilfried in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-17-2005, 03:19 AM
  4. Switching place names off
    By Winwaed in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 08-17-2004, 12:28 PM
  5. WebForms - switching between
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 03-26-2004, 07:54 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