Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I am just starting to understand the FSUIPC interface from Visual C++ and have compiled the example UIPCHello. This compiles ok, however on running it with FS9 running, I get:

Sim is:--------------(null)

FSUIPC Version:--3.411

FSClock:------------11:09:36

What does FSUIPC_FS_Version return for FS 2004 ?

What I hope to do is just extract the current aircraft position and heading so that I can create XML code to define a runway and parking from the current position and heading.

George

Posted
I am just starting to understand the FSUIPC interface from Visual C++ and have compiled the example UIPCHello. This compiles ok, however on running it with FS9 running, I get:

Sim is:--------------(null)

FSUIPC Version:--3.411

FSClock:------------11:09:36

Ah, it's just that the source hasn't been updated for FS2004. You should be able to do that easily enough.

What does FSUIPC_FS_Version return for FS 2004 ?

As documented in the Programmer's Guide The prime reference for all information from FSUIPC, excepting the more complex weather interfaces). In fact it is from the offset 3308:

FS version, as determined by FSUIPC: Currently only one of these:

1 = FS98

2 = FS2000

3 = CFS2

4 = CFS1

5 = reserved

6 = FS2002

7 = FS2004 “A Century of Flight”

Regards,

Pete

Posted

Thanks Pete,

I just ignored the FSVersion reply and collected the position and heading which worked fine, all I need to do now is to use a Hot-key to determine when I should retrieve the values. I'm still reading the comprehensive documentation so I'm sure I will figure it out very soon.

Thanks for a great interface.

George

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.