Hello guys,
Hopefully someone here will be able to help me.
I'm trying to create an ACARS system using VB.net and the FSUIPC SDK.
I'm got most of the standard 4byte Integer Offsets to work but I'm having a few problems with anything significantly higher.
I am trying to get the Latitude and Longitude to work. Well it works as it is but uncomfortably it only takes the Degree and then the first Minute is rounded and so wouldn't be useful to track location as there is quite a significant difference.
The Code I have is
Dim Lat As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&H560) Dim Longitude As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&H568) Dim Lati As Double = Lat.Value * 90.0 / (10001750.0 * 65536.0 * 65536.0) Dim Longi As Double = Longitude.Value * 360.0 / (65536.0 * 65536.0 * 65536.0 * 65536.0) Me.txtLat.Text = Lati.ToString("f1") Me.txtLong.Text = Longi.ToString("f1") [/CODE] If there anyway I can get it to show the full Latitude and Longitude? Also I have things like Aircraft Title What datatype do I need. [CODE] Dim Title As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&HD00) Me.txtAircraftTitle.Text = Title.ToString [/CODE] That's what I've got but it gives me an error in my TextBox which is FSUIPC.Offset`1[system.Int64] Thanks for the help.