MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth 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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #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

Tags
bug, mpoint


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 12:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked through UlookUbook!



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