Hi
The code below has been converted from vb.net to c# and now generates a
error
public void GetLatLon (string pc)
{
MapPoint.Map objMap;
MapPoint.Location objLoc;
try
{
objMap = map1.ActiveMap;
objLoc = (MapPoint.Location)(objMap.FindAddressResults("", "", "", "", pc,
MapPoint.GeoCountry.geoCountryUnitedKingdom ));
CalcPos(objMap, objLoc, globals.mapln, globals.mapLt);
objLoc = null;
objMap = null;
}
catch (Exception err)
{
Interaction.MsgBox(err.Message, 0, null);
}
}
error message = "Specified cast is not valid." is returned by line -
objLoc = (MapPoint.Location)(objMap.FindAddressResults("", "", "", "", pc,
MapPoint.GeoCountry.geoCountryUnitedKingdom ));
Any ideas folks