Hi Pete,
I'm trying (as a beginner) to do some programming for FS using your fantastic FSUIPC module (of which I have a registered version.)
While eveything else seems to be working fine, I can't get text to display properly in the scroll bar that goes across the top of the screen in FS2K4. All I get is nonsense scrolling across the top...
The short piece of code is:
strMessageB = ""
disString = "Distance to " & DestICAO & ": " & Format(Distance, "#0.0 nm")
For iCount = 1 To Len(disString)
strMessageB = strMessageB & ChrBAsc(Mid(disString, iCount, 1)))
Next iCount
strMessageB = strMessageB & Chr(0)
myInt = -1
If FSUIPC_Write(&H3380, 128, VarPtr(strMessageB), dwResult) Then
If FSUIPC_Write(&H32FA, 2, VarPtr(myInt), dwResult) Then
If FSUIPC_Process(dwResult) Then
End If
End If
End If
If you have a spare moment, please could you see if you can spot any silly mistakes I've made in the above.
Kind regards,
Alex Berry,
Edinburgh.