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

FSXA Coding gauge

Messages
132
Country
france
Hi everybody,

In first my request can be dumb, but I assume :D

Before to explain the reason of this topic, I must say some things. I'm beginner on programming gauge but I'm ready to learn. I create some basics XML code for the 3D Garmin GPS and another gauges for the cockpit of my Jodel DR-1050 and I like it !!.... It's a very big pleasure for me ;).

In the past, I have created some site in php / mysql. With this experience, I could have the basics of programming. I am willing to learn from another language ie C/C++ and C#. I found very good website to learn C/C++ and/or C# in french language. This part is not a problem for me.

But still being a new world of FSX, I do not know if it is better to rely on C/C++ or C#. The final idea is to create a playload using SimConnect and also gauges a little more advanced than what is proposed by XML.
The choice, I can not and that is why I need your help.

Also I develop on Windows Seven Ultimate 64bit and therefore do not know if I must use Visual C++ 2010 Express or Visual C# 2010 Express (depending with your reply).

I saw many topics create by N4gix (here and another website) on VC Express but the version from 2003. I still lost.

So what are the tips about C/C++ and Visual C# Express as well as to be in the right way.

Thank you to all of your help. It is a pleasure to be here!
 
Every gauge that is run within FS must be C/C++. Any SimConnect client must also be coded in C/C++ to the best of my knowledge.

External applications may be coded in any language as far as I know. If it runs under Windows at all, it may be used.
 
You can start by learning from the SDK and using the files provided with it to see the basic codes. I'm doing that my self but I still need a better tutorial to understand it fully. I know some C++ language and I want to use it instead of C but the tutorials I found was for C language. I use Microsoft Visual Studio 2010 to compile the sdk's files and it worked great. But Code Blocks for example did not work for me as I may have been using the wrong compiler/settings, etc.
 
You can start by learning from the SDK and using the files provided with it to see the basic codes.

Additionally, Dai Griffith's tutorial (book actually) on C++ gauge programming is an important resource I believe.

Most of the traffic in this forum centers around XML coding that amateurs like me use. But, there are a few professional programmers that contribute on C++ ... they all know their stuff and are generous with their assistance.

Doug Dawson, Bill Leaming, Ed Wilson, Dai Griffiths, Tom Aguilo - names to search for C++ tips.

Bob
 
I don't really know anything... I just steal Bill's code... but don't tell him!!

Ed Wilson
 
Ed you just gave yourself away :p .

The only problem with Dai Griffiths book is that it doesnt tell you how to deal with GDI+ gauges.....and unless you love images and photoshop it is far easier to use GDI+. Maybe its time i write my own book on the subject but then again i still have lots to learn....

On that topic has anyone looked at Direct2D as a means of replacing GDI+? Its more efficient that both Direct3D and GDI+....or so i hear.
 
Believe me theres a lot of things that are NOT that article that can bite you in the butt if you are not careful. Thats why i said above im considering writing my own book. The past month i have uncovered so much that has not been said in that article that i wonder how it can even be used as a guide....
 
:eek:
Believe me theres a lot of things that are NOT that article that can bite you in the butt if you are not careful. Thats why i said above im considering writing my own book. The past month i have uncovered so much that has not been said in that article that i wonder how it can even be used as a guide....

I must strongly disagree with the above statement, the Dai Griffiths "DragonFlight Design FS2K+/CFS+ C- Language Gauge Creation" is at least for me one of the bible in gauge creation

David, if you want to develop gauges the first document to read is the FSX SDK, then the MSDN ESP samples and white papers and of course the guide from dragonflight. They all offer samples that works and you can start with as a template for your work. This website also offers lots of resources.:)

Visual C++ 2005 and above are good for gauges.
 
Last edited:
I was referring to the ESP example....not Dai Griffiths book :)
 
I don't really know anything... I just steal Bill's code... but don't tell him!!

Ed Wilson

Well, no wonder both of us have problems. I've been stealing, um I mean, borrowing your code! :rotfl:

Now I know why I sometimes get into an infinite recursion loop and can't find a way to escape... :laughing:
 
Last edited:
Sorry for this late answer, I was very busy this week.

Thank you for all people to have send your opinions !!

Now I know the good way to create my own gauges C/C++ for FSX.

Yesterday, I try to compil the ESP GDI+ gauge and it's work on FSX ;)
 
Back
Top