MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




MapPoint Automation with C/C++ - Part 1

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 ...


Go Back   MapPoint Forums > Map Forums > MP2K Magazine Articles

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 09-15-2006
Junior Member
White Belt
 
Join Date: Sep 2006
Posts: 1
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
);
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
automation, c or c, mappoint, part


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 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


All times are GMT -5. The time now is 08:05 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Dalaman Holiday
Enjoy a wonderfully peaceful Dalaman holiday... Book through UlookUbook and save!



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 55 56 57 58 59