Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi guys,

I'm trying read "Name of current Aircraft" - 3D00, but it doesn't work. I don't know the delphi code to read zero-terminated strings. I have been testing many ways but .... :(

Some example code?? help me please !!

Regards

Daniel

Posted

I tried this and it worked:

function ReadAircraftName(): string;

var

str : string;

aName : array[0..255] of Char;

dwResult: DWord;

begin

FSUIPC_Read($3D00, 256, @aName, dwResult);

FSUIPC_Process(dwResult);

str:= aName;

Result:= Trim(str);

end;

Regards,

Bob

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.