MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Borland C++ Builder Pushpins Problem

This is a discussion on Borland C++ Builder Pushpins Problem within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am trying to place a pushpin with a name attached. When I place the pin it reports a name ...


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-30-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Borland C++ Builder Pushpins Problem

I am trying to place a pushpin with a name attached.
When I place the pin it reports a name consisting of the pin lat and long co ordinates.
Can anyone show me where I am going wrong?.

The following code works apart from the name bit -

// Edinburgh co ordinates
Lat=55.94912;
Lon=-3.20779;
Alt=1.00;

NowPos=App1->ActiveMap->GetLocation(Lat,Lon,Alt); //Note the targetlocation
App1->ActiveMap->AddPushpin(NowPos,(wchar_t*) "Lorry")->Symbol=85;
//Places the pushpin with name "Lorry" and red lorry symbol.

App1->ActiveMap->GoToLatLong(Lat,Lon,Alt); //redraw the map at the target location

// The map bit works okay and the pushpin has the correct symbol but the wrong name
// the name is showing as the lat,lon co ordinates which means I can't find it again by looking for the name I thought I had allocated.
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
borland, builder, problem, 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
Borland C++ Builder : Using Mappoint over olecontainer Anonymous MapPoint 2006/2009 Discussion 2 02-14-2005 05:04 AM
using c++builder with mappoint Anonymous MapPoint 2006/2009 Discussion 0 07-21-2004 04:20 AM
C++ Builder and Pushpins Anonymous MapPoint 2006/2009 Discussion 6 05-25-2004 04:56 AM
Borland C++ Builder and Pushpins Anonymous MapPoint 2006/2009 Discussion 0 04-05-2004 05:15 AM
Using MapPoint with C++Builder Anonymous MapPoint 2006/2009 Discussion 5 09-02-2003 05:37 PM


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


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