• 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.

Visual C++ 2010 resouce file compilation

Messages
76
Hi folks. I'm moving a multi-gauge project from VC++ 2008 to 2010. The resulting dll is about a third of the size of the 2008 varient, and is unrecognizable as a gauge in FS Panel Studio. I'm thinking that (at a minimum) the .rc file is not being compiled into the project as I do not see any output from the compiler regarding the .rc file.

I've checked my 2010 compiler settings with the 2008 version, but , obviously I'm missing something. Should there be some output indicating the .rc file was compiled? Is there something special to indicate in 2010?

Does anyone have a working small project/example of a gauge in VC++ 2010 they would be willing to share the .vcxproj file?
 
Someone's gotta ask, so I may as well be the dummy...

"Why?" There's no inherent advantage to using the 2010 compiler vs. the 2008 compiler, as far as I know.
 
Someone's gotta ask, so I may as well be the dummy...

"Why?" There's no inherent advantage to using the 2010 compiler vs. the 2008 compiler, as far as I know.

One might have updated to VS2010 for other reasons, such as P3D. ?

This document describes the Prepar3D® preferred method for development and installation of software add on material.

It is recommended that all software add ons be developed using Visual Studio 2010. Further, the Platform Toolset should be set to v100 and the Targeted framework should be .NET Version 4.0. These settings will help ensure consistency and compatibility for all new development.

Geoff
 
Doesn't get any simpler than this... Watch, you will need to change the include directories to point to your copy of fsxgauges_sp2.h, or whichever header file you are using.

Doug
 
Last edited:
Thanks folks.

The problem seems to have come from a bmp resource that somehow didn't have an associated gauge. (How this happened I dunno, and why it didn't appear in earlier versions - or was even caught by either me or testers is really perplexing). I ended up using a makefile build and managed to whittle it down to the offending resource. Once correct it built fine. However, then I noticed that the .dll was way too small - and sure enough it wasn't including the resources. When I finally got the resources compiled into it - then FS Panel Studio kept giving me a bogus .gau. This was strange since I open the .dll gauge (for FS-X) but FSPS insisted on using the .gau (for FS-9). I finally ended up just deleting the .gau file and FSPS was happy to use the .dll.

Very strange behavior and very much scratching of the head. But all is well and testing begins. I hope this helps someone in the future. :)
 
Back
Top