Using the FSUIPC Hello vb program in the SDK, I don't seem to have any problems reading any other positions but when i try to read the E000 ranges (i.e. E004 = number used slots) it only returns zero. The code is just added into the existing program after the timer loop:
Dim dwResult As Long
Dim NumGndTfc As Long
If FSUIPC_Read(&HE004, 2, VarPtr(NumGndTfc), dwResult) Then
If FSUIPC_Process(dwResult) Then
frmMain.lblGroundTraffic.Caption = NumGndTfc & " X"
Else
' Unable to "Process"
frmMain.lblGroundTraffic.Caption = "Processing: " & ResultText(dwResult)
End If
Else
' Unable to "Read"
frmMain.lblGroundTraffic.Caption = "Reading: " & ResultText(dwResult)
End If
Now in FSInterrogate it pulls the right data so I know i'm doing something wrong.
Using FS2K2 and FSUIPC 3.47
Thanks!