MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




C++ Builder and Pushpins

This is a discussion on C++ Builder and Pushpins within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have managed to get C++ Builder to place and delete pushpins but I cannot get it to attach a ...


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

I have managed to get C++ Builder to place and delete pushpins but I cannot get it to attach a Name or a Note.

The FindPushpin() doesn't seem to do anything.
The set_Name() doesn't appear to do anything.
The set_Note() doesn't appear to do anything.

Has anyone managed to get any of these to work in C++ Builder??.

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-19-2004
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 892
Blog Entries: 9
Doesn't the method that adds a pushpin, also include a parameter for the name?


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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-19-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
C++ Builder + Pushpins

Richard,
Thanks for the response - I have tried several times to get information on this problem.

You are correct but it doesn't work with the Borland. Any suggestions would be very welcome.

Basically what I want to do is place a pushpin with a name or a note and when a new location is required delete the old one and place a new one.

I can place them and delete them but can't get the name or note attached.
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-19-2004
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 892
Blog Entries: 9
Trevor: I'm afraid I don't use C++ Builder, but I still avoid MFC by using Visual Studio with the Intel C++ compiler. I wrote the following article which I checked by someone with C++ Builder, and includes a little bit of information at the end for C++ Builder users:

http://mp2kmag.com/a106--c++.without.mfc.mappoint.html

You might be doing that already, though?


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
C++ Builder and Pushpins

Thanks Richard,

I have read your article but I am not experienced enough to understand it.

It would appear that the C++ Builder doesn't implement the Microsoft OCX properly - I may have to abandon it but that would be giving up.

Somebody out there has the answer.

I will however keep trying until I crack this one

Thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 05-01-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
You're right, it's not implemented properly. There's many things that work with VB, but not CBuilder. You've just come across one of them.

Our solution to almost all such problems was to use Visual Basic to create a simple ActiveX wrapper for the MapPoint OCX. This wrapped control is what is used in Builder. When things like setting the name don't work directly, we add a simple Get/Set routine to the VB project and do it there.

Basically, Visual Basic acts as an interface to make those handful of calls that fail in Builder directly.

Cheers,
Chris
VP Sales & Marketing
www.mobileiq.biz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 05-25-2004
Junior Member
Yellow Belt
 
Join Date: Dec 2003
Posts: 17
C++ builder v6 and pushpin

Hi,

It works fine with C++ builder v6. You can add separatly a name and/or a note to a pushpin

WideString wsPushPinInfo = asUnNumeroClient.c_str();
WideString wsRaisonSociale = asRaisonSociale.c_str();
Mappoint_tlb::Pushpin *pPushpin;
pPushpin = _pMap->AddPushpin(pLocation,wsPushPinInfo.c_bstr());
pPushpin->set_Note(wsRaisonSociale.c_bstr());
pPushpin->set_BalloonState(0);
pPushpin->set_Highlight(false);
pPushpin->set_Symbol(iiSymbole);

cu,
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
builder, 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 c++builder with mappoint Anonymous MapPoint 2006/2009 Discussion 0 07-21-2004 04:20 AM
how to creat an Excel worksheet with C++Builder 5 Anonymous MapPoint 2006/2009 Discussion 1 04-17-2004 04:10 PM
Borland C++ Builder and Pushpins Anonymous MapPoint 2006/2009 Discussion 0 04-05-2004 05:15 AM
Borland C++ Builder Pushpins Problem Anonymous MapPoint 2006/2009 Discussion 0 03-30-2004 07:48 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 09:58 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