• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Invisible gauges

Messages
5
Country
netherlands
Hi,

I've got a little problem that needs to be solved. A couple of years ago I did some glider gauges and to my surprise some of those are still used today. So it seemed a nice idea to do some updates - finally.

Those gauges were compiled with Visual Studio 6 (C/C++) using makefile so I downloaded the latest Visual Studio C++ 2010 Express, removed the makefile and compiled as a dll.

I'm running FSXA on Windows XP and everything went fine, so I mailed the set to a friend of mine running FSX on Win7 and the gauges won't show up at all. Nothing...

While the old set - 7 years old - runs well on both XP and Win 7 the new compilation seems to run only on XP and not on Win 7.

Question: what am I doing wrong ?

Cheers,

Max.
 
Hi Bill,

here's what I have done:

Copied all source files to a new folder - *.c, *.h, *.rc and resource folder.

Started compiler Visual C++ 2010 Express.

Selected file -> new -> project from existing code.

Set path to folder with the source files.

Named the project mr-fsx-caiset.

Select project type "dll project".

The compiler created the project.

Changed #include "..\..\inc\fs9_gauges.h" to #include "..\inc\fs9_gauges.h".

Build the project - warning / error list.

Excluded all sub-gauges from project.

Build - warning / error list.

In Properties -> Configuration Properties -> C/C++ -> General - warning level to no warning.

Build - error - ',' somewhere - removed.

Build - error LNK2019 - unresolved external symbol regarding SOARRec.dll

In Properties -> Configuration Properties -> Linker -> Input -> Additional Dependencies added SOARRec.lib

Build - error LNK2019 - unresolved external symbol - that's a sound module I used but it's outdated. A new one will be added later on.

Removed all referencies to this module from source files.

Build - Build: 1 succeeded...

and in the debug folder is a mr-fsx-caiset.dll

Moved the .dll from the debug folder to the LS8-18 panel folder.

Changed the panel.cfg of the LS8-18 to read the gauges from mr-fs9-caiset to mr-fsx-caiset and it runs. (FSXA on Windows XP)

Changed the #define GAUGE_FONT_DEFAULT "Quartz" to #define GAUGE_FONT_DEFAULT "LCD"

Used the compiler to rename all the source files from mr-fs9- to mr-fsx- and adjusted the lines in the source files accordingly.

Build: 1 succeeded...

This build I mailed to a friend of mine (Ian Foster-Lewis) - he installed it the same way into the LS8-18 folder and the gauges didn't show up at all.
He's running FSXA on Win 7.

I've checked my compiler settings against your tutorial several times and the only thing I find that's different is the numbering of the resources.
I use larger steps like:

#define BMP_GPSNAV_SCHILD 0x1000

#define BMP_GPSNAV_PIJL00 0x1100
#define BMP_GPSNAV_PIJL01 0x1101
#define BMP_GPSNAV_PIJL02 0x1102
#define BMP_GPSNAV_PIJL03 0x1103
#define BMP_GPSNAV_PIJL04 0x1104
#define BMP_GPSNAV_PIJL05 0x1105
#define BMP_GPSNAV_PIJL06 0x1106
#define BMP_GPSNAV_PIJL07 0x1107
#define BMP_GPSNAV_PIJL08 0x1108
#define BMP_GPSNAV_PIJL09 0x1109

#define BMP_GPSNAV_BRG0 0x1200
#define BMP_GPSNAV_BRG1 0x1201
#define BMP_GPSNAV_V 0x1202

#define BMP_GPSNAV_DIST0 0x1300
#define BMP_GPSNAV_DIST1 0x1301

Should I change these steps ?

I can't image why the old mr-fs9-caiset.gau will show up on Win 7 / FSX and the new mr-fsx-caiset.dll won't. While it works ok on XP.

For those wanting to try this here's a link to the file: http://www.xs4all.nl/~roodvmax/downloads/mr-fsx-caiset.dll

You need to have Wolfgang Piper's LS8-18 installed and change the entries in the panel.cfg accordingly.

Cheers,

Max.
 
It may well be a "red herring," but we really must pay attention to the resource numbers used, otherwise strange things may happen...

There are some numbers that are "unsafe" and/or are "reserved" by FS9/FSX for internal use. Here is a link to a Wiki article I've posted that describes the issues and outlines a practical methodology to prevent any problems:

http://forums.flightsim.com/fswiki/index.php/Resource_Number_"Safe_Ranges"_for_C_Gauges
 
Thanks Bill,

I've read the article and will change the numbers accordingly just to be safe.

In the mean time things are getting more complicated: so far I've got 2 Win7 PC's where the gauges work well and 2 where they don't show up at all.

It doesn't matter if it's Win7 32 or Win7 64.

I just don't understand: code from 2003 compiled with VS 6 works everywhere, same code compiled with V C++ 2010 is giving problems.

Cheers,

Max.
 
Thanks Bill,

I've read the article and will change the numbers accordingly just to be safe.

In the mean time things are getting more complicated: so far I've got 2 Win7 PC's where the gauges work well and 2 where they don't show up at all.

It doesn't matter if it's Win7 32 or Win7 64.

I just don't understand: code from 2003 compiled with VS 6 works everywhere, same code compiled with V C++ 2010 is giving problems.

Cheers,

Max.
Hi Max
Im wondering if it could be something simple like
A: gauges installed to a protected folder under win7 (UAC issue)
B: when added to the panel.cfg the location params have a - (negative) location eg:
gauge00=xml!check, -37,4,359,500
instead of
gauge00=xml!check, 37,4,359,500

Wozza
 
Make sure you have unicode turned off.

Negative X or Y locations don't affect C gauges, unlike XML gauges.
 
Back
Top