MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Please help me!!! Is it a MPoint bug?

This is a discussion on Please help me!!! Is it a MPoint bug? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I wrote this function with Visual Basic 2003 .Net and MapPoint ActiveX; If I use lat 45.55811, long 11.545 it ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Please help me!!! Is it a MPoint bug?

I wrote this function with Visual Basic 2003 .Net and MapPoint ActiveX;
If I use lat 45.55811, long 11.545 it doesn't work ("m_oRoute.Calculate()" function freeze), all other coords works fine... could it be a MPoint bug?
Can you test this one and tell me if it works?
(MPControl is the name of activex object used in a form).

Thanks,
Marco

---------------------------------------------------------
Private Sub pbCalcola_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles pbCalculate.Click
Dim m_oMap As MapPoint.Map
Dim m_oApplication As MapPoint.Application
Dim m_oRoute As MapPoint.Route
Dim m_oLocation As MapPoint.Location
m_oMap = MPControl.NewMap(2)
m_oApplication = m_oMap.Application
MPControl.Units = MapPoint.GeoUnits.geoKm
m_oRoute = m_oMap.ActiveRoute
m_oLocation = m_oMap.GetLocation(45.93411, 9.93089, 100)
m_oRoute.Waypoints.Add(m_oLocation, "start")
' Coords works
'm_oLocation = m_oMap.GetLocation(45.55811, 11.544, 100)
' Coords doesn't works
m_oLocation = m_oMap.GetLocation(45.55811, 11.545, 100)
m_oRoute.Waypoints.Add(m_oLocation, "stop")
m_oRoute.Calculate()
End Sub
---------------------------------------------------------
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


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


All times are GMT -5. The time now is 05:07 AM.


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

Catered Ski Chalet
Hoping to book a catered ski chalet? Make sure you visit Holiday Hypermarket and search for accommodation to suit your holiday requirements.

Cruise Travel Agent
Book your cruise with Travel Counsellors. We are an award winning travel agent and can help plan your perfect cruise.

Thailand Holiday
A Thailand Holiday has much to offer with historic culture, lively arts, beautiful beaches, a good nightlife, friendly and hospitable people and one of the best cuisines in the world.

Egypt Holidays
Visit one of the most spectacular sightseeing destinations in the world with The Holiday Place. Egypt holidays provide a fantastic break!

Morocco
Gain insight on your holiday destination with the ULookUBook travel guides. Find out about Morocco and its customs online. Make an informed decision when you make a booking.

Holidays
At Travel.co.uk the options for holidays are endless. Do some online comparison shopping!

Cheap Fuerteventura Holidays
Enjoy the deep sands of the Canary Islands. Find cheap Fuerteventura 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