MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint 2004 ActiveX Delphi 2005 How to add a Polyline

This is a discussion on Mappoint 2004 ActiveX Delphi 2005 How to add a Polyline within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Dear all, i got a problem drawing a polyline on a map using Delphi 2005 and the ActiveX control from ...


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

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 03-31-2006
Junior Member
White Belt
 
Join Date: Mar 2006
Posts: 2
Mappoint 2004 ActiveX Delphi 2005 How to add a Polyline

Dear all,
i got a problem drawing a polyline on a map using Delphi 2005 and the ActiveX control from mappoint 2004.

I must give a array of locations to ..Shapes.addPolyline(myArray) to draw the way out of a GPS Data log.

The Parameter is shown as OleVariant, so i prepared a aLocations : array [0..100] of Location, fill it up with Locations and then i try to call the function ..Shapes.addPolyline(VarArrayRef(aLocations);

But it throughs an error.

Can anybody help me?

Thanks and Cheers,

It-Fraggel
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 04-01-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

Compiler error or runtime error ?
whitch error ?
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 04-03-2006
Junior Member
White Belt
 
Join Date: Mar 2006
Posts: 2
Hi,

first thanks for your effort. It was a typeconflict error message at runtime. At least i found the root cause. I defined a array [0..100] but only [0.99] where filled up. At that time when i call the add of the polyline the error was thrown. No it's working fine.

Thanks,
Ingo
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 04-04-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

thanks for feedback.

Quote:
I defined a array [0..100] but only [0.99] where filled up.
Probably this is due to the fact that Mappoint's indexes are starting from 1 instead of zero. this is very confusing but I'm starting to get used to it I'm not sure wy they did that....
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
2005, activex, add, delphi, mappoint 2004, polyline


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
Got Mappoint ActiveX working in Delphi 5 lynx MapPoint 2006/2009 Discussion 8 02-12-2008 05:46 PM
MapPoint 2004 and Visual Studio 2005 Runtime error tizer001 MapPoint 2006/2009 Discussion 10 02-26-2006 10:51 AM
Street detail - Streets/Trips 2005 versus MapPoint 2004 tmtemple MapPoint 2006/2009 Discussion 1 07-01-2005 08:32 AM
MapPoint 2004 updated from Autoroute 2005 Anonymous MapPoint 2006/2009 Discussion 0 03-07-2005 05:49 AM
MapPoint ActiveX Wrapper for Delphi 5/7 Anonymous News and Announcements 4 11-18-2003 10:15 AM


All times are GMT -5. The time now is 01:56 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


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