Jump to content
The simFlight Network Forums

C# Example


Recommended Posts

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.