MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




VS2008 b2 + Mappoint 2006

This is a discussion on VS2008 b2 + Mappoint 2006 within the Development forums, part of the MapPoint 2006/2009 Discussion category; Anyone know if mappoint 2006 workes with vs2008 b2? I have tried to install the ocx control and when draging ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 08-23-2007
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 2
Question VS2008 b2 + Mappoint 2006

Anyone know if mappoint 2006 workes with vs2008 b2? I have tried to install the ocx control and when draging it onto the center of the form it relocates its self to the upper left corner. Thought this might be normal so i tried to creata a map of europe but this gives a exception with no information.

MapControl(ocx) is called "mapCtl"

code:
--------
Map m;
try{
m = mapCtl.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
}
catch(Exception ex){
}


Any idears?
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 08-23-2007
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
Re: VS2008 b2 + Mappoint 2006

Hi, a wrong answer is better than no answer ... right?
blind shot ... so just use it as much as its worth

I had an similar problem when i tried to use the ctrl
without visualising it. So i guess Vs2008 has a problem
to add it correct to the form, ergo the ocx isn't fully
initialized. (I have 2005)

My code:
Code:
AxMappointControl mpCtrl = new AxMappointControl();
Form.Control.Add(mpCtrl);
mpCtrl.EndInit();
mpCtrl.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
So maybe your Control isn't really added to the form,
or the initialization isn't finished. I think it is the
second one therefor you will need the EndInit.
When you debuged the error, you got into the
Ax and (ocx == null) ... throw ... , just from my
experience.

You can also use your own instance like in the code
above. AFAIK
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 08-23-2007
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
Re: VS2008 b2 + Mappoint 2006

But hell do i know, i made a wrapper with the
studio aximp and used those dll's.
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 08-23-2007
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
Re: VS2008 b2 + Mappoint 2006

Here link to my problem, there is also the stuff
with the wrapper if you need it.

MapPoint 2006 with ActiveX
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 08-23-2007
Member
Yellow Belt
 
Join Date: Jul 2007
Posts: 45
Re: VS2008 b2 + Mappoint 2006

Generell comment, yellow belt ... chappelle clip ...
ohhh belt i want to .... on you

But why do old posts have the new belt, feels
like inconsistent data.

"I don't want, none of the above, i want to ..."

lalala

Great comedy
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 08-23-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,038
Re: VS2008 b2 + Mappoint 2006

Quote:
Originally Posted by ttallskog View Post
Anyone know if mappoint 2006 workes with vs2008 b2? I have tried to install the ocx control and when draging it onto the center of the form it relocates its self to the upper left corner. Thought this might be normal so i tried to creata a map of europe but this gives a exception with no information.

MapControl(ocx) is called "mapCtl"

code:
--------
Map m;
try{
m = mapCtl.NewMap(MapPoint.GeoMapRegion.geoMapEurope);
}
catch(Exception ex){
}


Any idears?
probably a problem of VS2008. For the place of the control, you can try to have a panel, put it on the panel and align it to client. Should work.
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 08-24-2007
Junior Member
White Belt
 
Join Date: Aug 2007
Posts: 2
Re: VS2008 b2 + Mappoint 2006

tnx, but still no luck.

I tried changing the target platform from 3.5 to 2.0. 2.0 is used with vs2005 and mappoint workes on that platform?

When runing it with the new settings i get a "ArgumetException" -"MapPoint failed to load. The cause of this failure is unknown."

Is there something that i am missing in the settings or is this just a vs2008 problem or am I stupid?

will keep trying. if i have to install vs2005
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 08-24-2007
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 759
Blog Entries: 1
Re: VS2008 b2 + Mappoint 2006

You're using a beta of VS, so I think that must be the prime suspect.
(you're also brave, imho!)

MP2006 works fine with VS2005 and .NET 2 - I've been doing this as an add-in with C#; and a simple proof-of-concept with VB.Net and the MapPoint control.

There's a good walkthrough of how, in Chandu Thota's book (Programming MapPoint .NET I believe it is called - my copy isn't handy)


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
  #9 (permalink)  
Old 08-24-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,223
Blog Entries: 1
Re: VS2008 b2 + Mappoint 2006

"Programming MapPoint in .NET" although I have heard it called other names - just as "MapPoint 2002 for Dummies" was sort of renamed "MapPoint for Dummies", I think there was another printing of MapPoint for Dummies but not AFAIK for Programming MapPoint in .NET.

In the book, there was a small section for the Virtual Earth which had just come out and a lot for the MapPoint Web Service and MapPoint Location Server in addition to the great content for MapPoint (the CD product).... I still refer to the book occasionally when I go beyond something I've already written - or even if I've already written it - especially around DisplayDataMap, I like his good explanation of how to program that... the examples are in C# but it's close enough to VB.NET and VBA.

Anyway this is all very much aside

But check any/all explanations of how to use MapPoint and VS2005 and make sure you are at least doing that ?

best,
Eric
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 12-04-2007
Junior Member
White Belt
 
Join Date: Nov 2007
Location: Holland MI
Posts: 4
Unhappy Re: VS2008 b2 + Mappoint 2006

ttallskog: You are not going crazy. I have the same issues with the VS 2008 release on 3.5 release on vista, mappoint 2006. I've been programming mappoint since 2004 version and never had any issues with vs 2005. Does ANYBODY on this forum actually program with VS 2008
I've linked this to the thread I have already started AGAIN. I hope programmers at ms see this cause right now, it aint workin!

Mappoint 2006, C#, VS 2008, Vista, COM object problems
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/vs2008-b2-mappoint-2006-a-6181.html

Posted By For Type Date
Microsoft MapPoint 2006 - MP2K Magazine This thread Refback 08-30-2007 11:23 AM
Tracking P.F. Chang’s in the Midwest - MapPoint Articles - MP2K Magazine This thread Refback 08-28-2007 04:28 PM
Merging Multiple Routes - MapPoint Articles - MP2K Magazine This thread Refback 08-25-2007 05:28 AM
Map Visitors - Powered by Virtual Earth This thread Refback 08-24-2007 01:26 AM
Map Visitors - Powered by Virtual Earth This thread Refback 08-24-2007 01:26 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
Difference between MapPoint 2006 and MapPoint 2006 Fleet jlewis MapPoint 2006/2009 Discussion 1 11-21-2006 08:18 AM
Mappoint 2006 mhuslig MapPoint 2006/2009 Discussion 2 10-04-2006 12:22 PM
Mappoint 2006 GPS rt MapPoint 2006/2009 Discussion 3 07-15-2006 04:07 AM
MapPoint 2006 TFB MapPoint 2006/2009 Discussion 3 04-25-2006 09:18 AM
MapPoint 2006 Eric Frost MapPoint 2006/2009 Discussion 0 04-03-2006 08:42 PM


All times are GMT -5. The time now is 01:24 PM.


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

Cheap Flights to Benidorm
Book cheap flights to Benidorm with Holiday Hypermarket. Whether Summer or Winter Benidorm is a great destination.

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

Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.

Dubai Holidays
Dubai holidays provide you with exotic sights, desert safaris and superb cuisine. There is an extensive range of things to do and see!

Cheap Portugal Holidays
Want to know what the best time to book cheap Portugal holidays is? Well have a look on ulookubook.com for some useful information to save your cash. Golf, tennis and cycling are all very popular here.

Travel
Check out the travel options on Travel.co.uk.

Cheap Goa Holidays
Experience the world famous Wednesday Flea Market at Anjuna! Book cheap Goa holidays at On The Beach!


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