Sign in to follow this  
WoSchwarz

Making a C gauge FS2002/2004 compatible

Recommended Posts

Hi all,I'm having problems getting a gauge work with FS 2002 - here's the story....I've written a C gauge (to display some flight parameters as strings in a display), using the FS9 SDK, sd2gau17 (thanks Dai btw!) and VC++.net.It's working perfectly with FS 2004, no problems here.Then I've been using the gauges.h from the FS2002 SDK, removed the FS9 specific stuff from the gauge compiled anew and tried to use it in FS 2002.FS 2002 however came up with the message that a 3rd party module cannot be loaded, the gauge is being deactivated in FS2002.Can someone please kick me into the right direction? What needs to be done to make the same C code gauge work in both sims (assuming there's no version specific code)?Thanks for any hint.CheersWolfgang

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Sounds like the compiler is finding the FS9 version of gauges.h before it finds the FS8 version. Have you tried renaming the FS8 version to something more explicit?You could also try this rather ineligant approach. In the gauges.h file from the FS9 SDK, the following definitions are included:#define FS8LINK_VERSION 0x0800#define FS9LINK_VERSION 0x0900Try adding the following entries just before your gauge table entries:#undef FS9LINK_VERSION#define FS9LINK_VERSION 0x0800Doug

Share this post


Link to post
Share on other sites

Hi Doug,thanks so far.I do think that it finds the FS8 include, just because I'm getting some compiler errors which don't appear with the FS9 version (XML variable lookups etc).But maybe it needs to pushed into it - I'll try that.CheersWolfgang

Share this post


Link to post
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
Sign in to follow this