Hi,
Below is my code in C++, what I try to do is looking for a group of places nearby a location, then for each place found, I display the name, street address . The same code works well for MapPoint 2004 North America, but with MapPoint 2004 Europe, it doesn't return street address, only postcode and phone number of each place found. But if I click on the map itself, it shows the street address.
double dRad = 2; // 2Km radius
oFoundResults = mpLoc.FindNearby(dRad);
Cnt = oFoundResults.GetCount();
VARIANT vIdx;
vIdx.vt = VT_I4;
vIdx.lVal = 1; // this index would be in a loop upto Cnt
oLoc = (Location) oFoundResults.GetItem(&vI);
CString Name = oLoc.GetName();
oSA = (StreetAddress) oLoc.GetStreetAddress();
CString strAddress = oSA.GetStreet(); // this works in North America, but doesn't work in Europe
CString strDetails = oSA.GetValue(); // get street address and phone number
if (strDetails.GetLength() == 0)
strDetails = "No Address";