Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| C++ Builder and Pushpins 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??. |
| ||||
|
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 |
| |||
| 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. |
| ||||
|
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 |
| |||
| 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 |
| |||
|
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 |
| |||
| 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, |
![]() |
| Tags |
| builder, pushpins |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |