nasirgul
04-21-2008, 03:31 PM
Hello,
I am having a problem while interfacing mine software with GPS Locater. I am getting Lat & Long in text box correctly with mine GPS Locator. But having problem with Lat & Long ... When I click button to find Map.Its give me error ...............at getlocation();
loc = axMappointControl1.ActiveMap.GetLocation(Lat,Long, Altitute);
Error is:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format....
It is giving error as GetLocation(); accepts in double format. I tried this
string Lat;
string Lon;
/////as I am using some other string varaibles to get NMEA data...
txtLat.Text = Lat;
txtLon.Text = Lon;
double lat = Convert.ToDouble(this.txtLat.Text as string);
double lon = Convert.ToDouble(this.txtLong.Text as string);
Hope to hear from you guys.
Regards.
Nasir
I am having a problem while interfacing mine software with GPS Locater. I am getting Lat & Long in text box correctly with mine GPS Locator. But having problem with Lat & Long ... When I click button to find Map.Its give me error ...............at getlocation();
loc = axMappointControl1.ActiveMap.GetLocation(Lat,Long, Altitute);
Error is:
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: Input string was not in a correct format....
It is giving error as GetLocation(); accepts in double format. I tried this
string Lat;
string Lon;
/////as I am using some other string varaibles to get NMEA data...
txtLat.Text = Lat;
txtLon.Text = Lon;
double lat = Convert.ToDouble(this.txtLat.Text as string);
double lon = Convert.ToDouble(this.txtLong.Text as string);
Hope to hear from you guys.
Regards.
Nasir