• 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 SDK (SimConnect) installation question

Messages
51
Country
denmark
Hi,

I would like to learn some programming skills concerning the SimConnect "server" in order to make a small program which can receive data from FSX.
Until now my programming language has been Delphi but I have downloaded the Visual Studio Express [VSE] for free in order to learn some C++
programming. I understand that the documentation and examples in SDK regarding SimConnect use the C++ language.

I am new to this and I dont know if the choosen drives for installation of my client (made in Visual Studio Expres), my FSX and my copy of SDK will
be essential for my program to function?? I plan to install as follows.......
- FSX (C-drive = SSD-drive)
- SDK (F-drive)
- Visual Studio Express [VSE] (F-drive)
(I could install all 3 on my C-drive but wants to safe space on my SSD :-))

I assume that SimConnect wil be installed (as part of the SDK) on the F-drive if I follow this plan??
Will my programmed client (programmed with Visual Studio Express) be able to communicate with SimConnect and FSX??

Best Regards
Lars
 
Included in the SDK will be two files which you will need to copy into locations where VS can find them:
SimConnect.h
SimConnect.lib
You can certainly place them in with the source files for each project you create, but this will of course lead to a great deal of duplication. Alternatively, you could put them in with the header (.h) and library (.lib) files in the VS folder structure.
You can also add the SDK folders to the search paths for your project. Doesn't really matter which of these methods you use, VS just has to be able to find the files.
The SimConnect .dll file is installed by FSX itself, not by the SDK. It is buried in the Windows SxS folder structure.
It doesn't matter what drive FSX, the SDK, or VS are installed on, just as long as they are installed properly. The paths are all recorded in the Windows registry.

Doug
 
Thank you very much Doug.

Then I can safe som Space on my SDD. :)

Having read about this SimConnect programming subject I see that some are programming in C++ and some in C#.
Which should I prefer?

I know from my many years with Delphi that one of the best ways to learn a new language is by seeing som good examples and try to figure out what happens in the code.
I Wonder if somebody know of some good tutorial with relevant programming examples in relation to SimConnect?

Lars
 
Last edited:
I found examples regarding SimConnect in the SDK to be certainly good enough. You can find general programming and WinAPI examples all over the internet.

If you go C# way, I am not sure about that re. SimConnect, but there should be plenty examples in general all over the web as well.
 
Thank you for the answers. I think I will try C++ in order to get the best amount of source.
 
Back
Top