|
Can't get floating point lon/lat out of MonkeyTalk.dll in Delphi
I am trying to make my own lon/lat logger for mapmonkey, because the current one is fixed to 10 seconds.
After a while I managed to get the .dll working and reading data from MapMonkey. But when I'm getting the lon/lat coordinates it is converting them to numbers instead of full floating points.
This is how I coded it and what i got:
Memo1.Lines.Add('Lat: ' + floattostrf(MonkeyMessenger1.Latitude,ffFixed,15,8 ) + ' Lon: ' + floattostr(MonkeyMessenger1.Longitude));
Result: Lat: 52,00000000 Lon: 4
I tried to convert it using the format with floattostrf() and with floattostr() but I got no luck.
What am I doing wrong? Thanks
Last edited by Goddy; 05-16-2006 at 09:48 AM.
|