MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




MappointControl 2004/2006 compatible ?

This is a discussion on MappointControl 2004/2006 compatible ? within the Development forums, part of the MapPoint 2006/2009 Discussion category; I'm developing a VB.NET application that use the MappointControl included in Mappoint2004. I will supply the application to a customer ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-24-2008
Junior Member
Yellow Belt
 
Join Date: Jun 2008
Posts: 12
MappointControl 2004/2006 compatible ?

I'm developing a VB.NET application that use the MappointControl included in Mappoint2004. I will supply the application to a customer without the software Mappoint2004. The customer will buy and install its own copy of Mappoint.
What does it happen if he installs Mappoint2006 (or 2009) instead ?
Everything should works ?
The point is that I have a regular license of Mappoint 2004. I would avoid to buy a 2006 version just to develope the application, I'm not interested to have a 2006 license. But the customer probably will buy a 2006 or 2009 version to benefit of updated maps.
Marco
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 07-24-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: MappointControl 2004/2006 compatible ?

Hi,

For the object model it works with all versions. But if you use the activeX control you have to install MP2006 and recompile. I don't know for the 2009 version.
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 07-24-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 785
Blog Entries: 4
Re: MappointControl 2004/2006 compatible ?

What Wilfried says is correct, but depending on how you built your .NET assembly it might reference a specific version. This probably won't work until you change the reference to point to the later version (Wilfried: correct me if I'm wrong, you have more .NET and MP experience...)

As for the actual interface MP2006 adds some relatively minor things - doesn't remove anything. We expect MP2009 to do the same.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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 07-24-2008
Junior Member
Yellow Belt
 
Join Date: Jun 2008
Posts: 12
Re: MappointControl 2004/2006 compatible ?

Hi, thank you.
I have a little experience in this and I don't understand well the difference from Object model and ocx. ....
I have declared in my vb.net application the reference to MappointControl, then I have placed the control on the form, then I use the various method to find a location, to add a pushpin, etc.
I think I'm using the OCX, right ?
So if I install this application (created using the mappoint control of 2004 version) on a PC where is installed Mappoint2006 it will not works ?
Marco
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-25-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
Re: MappointControl 2004/2006 compatible ?

Hi,

Quote:
I think I'm using the OCX, right ?
Correct.

Quote:
So if I install this application (created using the mappoint control of 2004 version) on a PC where is installed Mappoint2006 it will not works ?
Correct, this is my experience.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-25-2008
Junior Member
Yellow Belt
 
Join Date: Jun 2008
Posts: 12
Re: MappointControl 2004/2006 compatible ?

uhmm .... I don't want to buy a license of Mappoint2006 because I don't really use it. Just to put me in peace with a license, I have bought now for a few price a Mappoint2004, but now it seems it is not useful because sure the customer will install 2006 ...

Is there any solutions ? For example, is it possible to dinamically load the proper Mappointcontrol according on wich version of Mappoint the customer install ?
I mean, I don't include the control in my application. When it runs, it looks for a Mappoint (2004/2006/2009) installed on the pc, then automatically load the relative Mappointcontrol (which ?) , place it on the form and show the map ?
Marco
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 07-25-2008
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,314
Blog Entries: 1
Re: MappointControl 2004/2006 compatible ?

I don't know about the control, but with VB/VBA Automation (examples at Working With Excel and MapPoint - MP2K Magazine ) you can definitely be version independent.. you just don't specify the version number in the code.

I don't really know, but I suspect with the control when you drop it in it IS version specific..

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 07-25-2008
Junior Member
Yellow Belt
 
Join Date: Jun 2008
Posts: 12
Re: MappointControl 2004/2006 compatible ?

Quote:
Originally Posted by Eric Frost View Post
I don't really know, but I suspect with the control when you drop it in it IS version specific..

Eric

Yes, but It seems to me that a control can also be dinamically created in a form in runtime, not only dropped in a form at design time.
I feel that some solution is around me but I don't know how to proceed.
Marco
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 07-25-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 785
Blog Entries: 4
Re: MappointControl 2004/2006 compatible ?

In the world of COM (eg. C++ and VB6) you don't necessarily have to specify the version at compile time - and it should work with the version you develop against and later versions.
I assume it is the same with the OCX - this is only particular way of using the COM interface.

The standard way in the .NET world is to reference a specific version - so it will only work with that version. This is a problem I have with MPSuperShape - I will probably have to release a MapPoint 2009 version.

The way around it with .NET using the standard object model, is to use late binding. I think this probably should work with the OCX? (my understanding is that it won't work with add-ins).

I've promised Eric an article on MapPoint and late binding, but it will be using C#.


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 07-25-2008
Junior Member
Yellow Belt
 
Join Date: Jun 2008
Posts: 12
Re: MappointControl 2004/2006 compatible ?

It is a bit difficult for me to understand this concept.
But:
isn't it possible to do something like this (I just copy and paste an example to give the idea)

Dim myControl1 As MyControl = CType(LoadControl("TempControl_Samples1.vb.ascx"), MyControl)
Controls.Add(myControl1)

What I'm thinking is (during runtime) to see which version of Mappoint is installed on the PC, then load the proper control and place in the form.

Doesn't it works ?
Marco
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


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mappointcontrol-2004-2006-compatible-8112.html

Posted By For Type Date
MapPoint Help - MP2K Magazine This thread Refback 07-25-2008 06:11 PM
The Magazine for MapPoint - MP2K Magazine This thread Refback 07-24-2008 04:42 AM

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
Using 2006 data in 2004 acs680 MapPoint 2006/2009 Discussion 0 05-28-2008 08:53 PM
Mappoint 2004-2006 Bug Maverick MapPoint 2006/2009 Discussion 1 01-10-2007 02:00 PM
Upgrading from MP 2004 to MP 2006 tacaldo MapPoint 2006/2009 Discussion 1 10-01-2006 04:39 PM
MapPoint 2004 -> 2006 lane MapPoint 2006/2009 Discussion 2 06-05-2006 10:17 AM
MapPoint 2004 Compatible with ECDIS?? Anonymous Wish List 1 11-24-2003 11:50 AM


All times are GMT -5. The time now is 11:43 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap Ski Holidays Austria
For the best cheap ski holidays, Austria has a charm all of its own. Check out the unspoilt, picturesque villages with superb ski resorts of all types.

Turkey Holidays
Find and book Turkey Holidays with Travel Counsellors. Holiday destinations around the world including Turkey.

Cheap Flights to Cape Town
Here at dealchecker.co.uk we’ll shop around for cheap flights to Cape Town so you don’t have to. Find and Compare prices from over twenty UK travel agents with just one search.

Nile Cruises
Nile cruises are one of the best ways to discover the riches of Egypt. See ancient ruins and lush verdure from the River Nile. Book today!

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

Package Holidays
With the help of Travel.co.uk you can find the package holidays of your dreams.

Cheap Holidays in Florida
Legendary weather! Visit On The Beach for info on cheap holidays in Florida.


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