Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Can anyone please put an c# code example showing how to put an aircraft name (offset 3D00) in a string variable?

If you are using my FSUIPC Client DLL for .NET then you just declare the offset as follows:

private Offset<string> aircraftName = new Offset<string>(0x3D00, 256);

There is also an example of reading a string (Aircraft title) in the example application provided.

If you are using the obsolete C# SDK then strings are one of many FSUIPC offset types that it doesn't support.

My DLL can be found in the downloads sub-forum or follow this link:

http://forum.simflight.com/topic/40989-fsuipc-client-dll-for-net-version-20/

Paul

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.