Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on MapPoint Automation with C/C++ - Part 1 within the MP2K Magazine Articles forums, part of the Map Forums category; i was getting errors on all of the params for FindAddressResults - it wanted _bstr_t instead of strings and a ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| fixed compile trouble
i was getting errors on all of the params for FindAddressResults - it wanted _bstr_t instead of strings and a _variant_t instead of int to fix the FindAddressResults problem i did this -> _bstr_t bstrStreet("400 Coronado Dr"); _bstr_t bstrCity("Denton"); _bstr_t bstrOtherCity("400 Coronado Dr"); _bstr_t bstrRegion("TX"); _bstr_t bstrPostalCode("76209"); VARIANT vtGeoCountryDefault; VariantInit( &vtGeoCountryDefault ); V_VT(&vtGeoCountryDefault) = VT_I4; V_I4(&vtGeoCountryDefault) = geoCountryDefault; FindResultsPtr resultsPtr = myMapPtr->FindAddressResults ( bstrStreet, bstrCity, bstrOtherCity, bstrRegion, bstrPostalCode, &vtGeoCountryDefault ); |
![]() |
| Tags |
| automation, c or c, mappoint, part |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Using Python to control MapPoint, Part 1 | Eric Frost | MP2K Magazine Articles | 0 | 03-26-2006 10:29 PM |
| MapPoint Automation with C/C++ - Part 2 | Eric Frost | MP2K Magazine Articles | 1 | 09-20-2005 10:00 AM |
| Automation -- Unable to kill mappoint.exe | Anonymous | MapPoint 2006/2009 Discussion | 0 | 02-03-2004 10:12 PM |
| Error in VBA automation of MapPoint when PO BOX is found | JPeters | MapPoint 2006/2009 Discussion | 2 | 01-09-2003 09:40 AM |
| I am using Mappoint with Visual C++ via automation.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 07-08-2002 01:07 AM |
Dalaman Holiday
Enjoy a wonderfully peaceful Dalaman holiday... Book through UlookUbook and save!