MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Delphi and pushpins?

This is a discussion on Delphi and pushpins? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I've seen a few examples of using custom pushpins with Delphi, but I've had no luck with them. The main ...


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 11-21-2007
Junior Member
Yellow Belt
 
Join Date: Nov 2007
Posts: 12
Delphi and pushpins?

I've seen a few examples of using custom pushpins with Delphi, but I've had no luck with them. The main problem is in the declaration of the MapPoint.DataSet and other vars. The Dim statement used in VB doesn't exist in Delphi, so the Dim objDataSet As MapPoint.DataSet doesn't work.

Could anyone explain how to load and reference/use a custom symbol? Thanks.
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 11-29-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,487
Blog Entries: 1
Re: Delphi and pushpins?

I haven't done any development with Delphi, but have you seen the articles on MP2Kmag?

search for Delphi on this page
MapPoint Articles

three articles:
Using MapPoint In Delphi
Snap to a Road
Delphi Address Verifier

Can anyone think of other good examples?

You can search this forum for "delphi" using Google
site:mapforums.com delphi
or the Forum's built-in search software, see "Search" above.

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
  #3 (permalink)  
Old 11-29-2007
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Delphi and pushpins?

Hi,

You dont need the Dim statement in Delphi. Just declare the variables as a class member or on the stack. You need to include the type library if you use the object model:

Code:
  private
    Loc: Location;
    PP: PushPin;
    DS: Dataset;
  end;
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 11-29-2007
Junior Member
Yellow Belt
 
Join Date: Nov 2007
Posts: 12
Re: Delphi and pushpins?

Classes--now it makes sense (and works). Thanks a lot for the replies. This is a great forum!
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
delphi, pushpins


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 MapPoint In Delphi Anonymous MP2K Magazine Articles 8 12-05-2005 10:51 AM
Creating a subset of Pushpins from a set of pushpins paf33 MapPoint 2006/2009 Discussion 3 08-09-2005 05:54 AM
Delphi Anonymous MapPoint 2006/2009 Discussion 2 12-18-2003 12:11 PM
pushpins with delphi ian MapPoint 2006/2009 Discussion 2 06-19-2003 01:15 PM
Mappoint With Delphi 5 stuarth MapPoint 2006/2009 Discussion 1 04-08-2003 11:21 AM


All times are GMT -5. The time now is 12:31 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 55