MapPoint Forums

MapForums

Community of VE/MapPoint 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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #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


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 03:52 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

Val d'Isere
For a ski holiday destination renowned for combining great skiing with a vibrant nightlife, book a holiday to Val d'Isere. Holiday Hypermarket brings you the latest great deals.

Portugal Holidays
Find and book Portugal Holidays with Travel Counsellors. Holiday destinations around the world including Portugal.

Cheap Holidays to Turkey
If you’re looking for cheap holidays to Turkey then dealchecker.co.uk is the place for you! Our search helps you see real prices from the UK’s top holiday companies all in one go.

Holidays in Dubai
Holidays in Dubai are an eclectic mix of the ancient and the modern. Discover an oasis of luxury amid the Arabian desert. Book here now!

Cheap Morocco Holidays
Cheap Morocco holidays may be the answer to your cheap holiday search. With sunshine throughout most of the year it can be great value if you avoid the peak season. Why not include a trip to the small tranquil town of Chefchaouen Tangier in your visit?

Compare Prices
Travel.co.uk makes it easy for you to compare prices from hundreds of UK based travel companies.

Holidays in Gran Canaria
Have some fun in the sun on the Canary Islands! See On The Beach for information on holidays in Gran Canaria.


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