GHD Posted November 13, 2004 Report Posted November 13, 2004 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
Pete Dowson Posted November 13, 2004 Report Posted November 13, 2004 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
GHD Posted November 13, 2004 Author Report Posted November 13, 2004 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now