Thanks for reply, Pete!
"Nor738" is the actual aircraft name, but for some reason it's mixed with VOR names (?) and other aircrafts..
The problem is that my application is supposed to log and notify the virtual airline each time the pilot change aircraft (in other words: each time the aircraft string change).
I'm writing in C#. This is the complete code:
int typeToken = 0;
fsuipc.FSUIPC_Read(0x3D00, 256, ref typeToken, ref dwResult);
fsuipc.FSUIPC_Process(ref dwResult);
byte[] type = new byte[256];
if (fsuipc.FSUIPC_Get(ref typeToken, 256, ref type))
{
string tmp = System.Text.Encoding.ASCII.GetString(type).TrimEnd('\0');
if(tmp.Length > 1)
current_aircraft = tmp;
}
I'm using String.TrimEnd('\0'); to remove all characters after the first terminating zero.