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

SimConnect from beginning

Hello guys...
I have idea to create some external app which will communicate with P3D using SimConnect and change variable values, however...
I'm tired of trying to run samples which comes with P3D v4 sdk witch are not working. So many error messages when trying to build a project...
So, please guys, lets start some kind of tutorial with this topic... which visual studio needs to be downloaded, how to setup it and make it work with a very, very simple code which will show "connected to P3D" on command prompt on successful connection.



Resource contributor
Included with the P3D SDK download is the Learning Center. Or available online here.

You should look closely at the SimConnect API information that is under the SDK part of the learning Center.

On the SimConnect API Overview page, in the SimConnect Projects section, the third paragraph says "To get started, learn about how to create either native or managed SimConnect applications:"

Clicking on the link for your type of project, C++ or Managed, will take you to the instructions that you need to follow that should get rid of the problems you are having now.
Ok Dave, thank you for you response!
So... I have Visual Studio 2017 with NET Framework 4.7.2 installed.
Also I've downloaded P3D v4 SDK and installed it successfully .

Now everything should be running smooth but it's not like that.

When I open examples for SimConnect from SDK and click build/run, there are a million error messages.
So I downloaded project from GitHub for C# and SimConnect example and after adding a reference to .dll file like exposed in SDK Documentation, I'm getting this message:

errorsimconnect.jpg errorsimconnect1.jpg

Ok, writing anything that utilizes SimConnect requires a good understanding of the nuances of the language being used (C++ or C#). This isn't beginner level software development, it's actually quite a bit higher than that. The error messages you receive are all based on your development environment configuration and location of files necessary for your project. You absolutely must understand what those messages you are getting mean.

I don't see these two lines in your code displayed:

using LockheedMartin.Prepar3D.SimConnect;
using System.Runtime.InteropServices;
Hello WarpD

It's not my code, it's downloaded form GitHub, you didn't read... but anyway those two lines are present will show you in second screenshot, under Form1.cs...
However I "was" C++ hobby programmer 9 years ago, and will take me some time to get back. Especially new with NET framework.

First screenshot is my new project which will have only connect and disconnect button with label which will show connection status: connected or disconnected

1.jpg 2.jpg

This topic should be tutorial from beginning, getting basics ...