Hi All ,
I am asking this question to VB programmers. Peter descrbide me someting in other forum but couldnt correct the problem
My problem is while getting the Centre tank level and altitude value from fsuipc the value changes from + values to - valuse than to +values again , something like thid crazy thnigs
these are the codes i am using for centtre fuel level and altitujde
Altitude ocde :
Dim fuel10 As Integer
Dim dwResult10 As Long
Call FSUIPC_Read(&H20, 4, VarPtr(fuel10), dwResult10)
Call FSUIPC_Process(dwResult10)
Label19.Caption = fuel10
Fuel centre:
Dim fuel8 As Integer
Dim dwResult8 As Long
Call FSUIPC_Read(&HB7C, 4, VarPtr(fuel8), dwResult8)
Call FSUIPC_Process(dwResult8)
Text36.Text = fuel8
THIS CODES ARE without dividing or multipling with the values with 256 or 65536 or sometging like tihs .. because i got - values and wrong values from 1st steps..