View Single Post

  #7 (permalink)  
Old 05-25-2004
tanguy_laverdure tanguy_laverdure is offline
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,
Reply With Quote