Jump to content
The simFlight Network Forums

FSUIPC - writing to FSX with Delphi


Recommended Posts

Hi, I'm using Pelle's FPCuser.pas file for Delphi 6 to read/write to FSX variables. I can read variables with no problem, however, I can not write to an FSX variable. I purchased a legal copy of FSUIPC 4.070 and I'm assuming there are no limitations because someone told me that I need to have a special developer's license to write to FSX variables. Is that true? It should be pretty straight forward to write to an FSX variable, such as changing the flaps. Again, I can read variables from FSX but I can not write to a variable. Below is a snippet of my Delphi code.

Var

Flaps : integer;

begin

Flaps := 16383;

FSUIPC_Open(SIM_ANY, dwResult);

FSUIPC_Write($0BDC, 4, @Flaps, dwResult);

FSUIPC_Process(dwResult);

.....

end;

Attached is the FPCuser.pas file. Thanks for your help!

Mark

FPCuser.rar

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.