Just started today installing the FSX Software Developer Kit. I noticed you need the SDK that exactly matches you FSX version. After installing the three SDK setups in order to have the FSX Acceleration SDK installed, I noticed the SDK Samples did not work on a non-FSX Acceleration simulator.
I have one computer I use to develop software in Visual Studio and my other machine is solely used for FSX Acceleration.
After that I tried the ‘Throttle Control’ sample executable (from the Accelleration SDK) after FSX Accelleration was started I was not able to have the ‘A’ and ‘Z’ keys to control the throttle. Probably it’s because these keys are already in use by FSX for the disengage autopilot and change view commands. I didn’t investigate this, but I read somewhere that I had to change the following line 54 in ThrottleControl.cpp:
into the following:
I used Visual Studio 2010 to compile the project. Visual Studio needed to upgrade the project to the new Visual Studio 2010 settings. Then I just used the default Visual Studio settings when I opened the project, that resulted after compilation in a debug-version of the Throttle Control executable, for it was located in the Debug output folder. I thought this would be fine, since the project compiled after changing the ‘Configuration Properties’ – ‘Linker’ – ‘General’ – ‘Enable Incremental Linking’ into the value ‘False’. This had to be done in order to prevent the following compilation error:
Error 2 error LNK1123: failure during conversion to COFF: file invalid or corrupt C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Core Utilities Kit\SimConnect SDK\Samples\Throttle Control\Throttle Control\LINK Throttle Control
Then I copied the compiled Throttle Control.exe to my FSX machine on which I haven’t Visual Studio installed. After starting FSX and then Throttle Control.exe, I got the following error:
The program can’t start because MSVCR100D.dll is missing from your computer. Try reinstalling the program to fix this problem.
Quickly I noticed this must had something to do with missing the Visual C++ 2010 redistributables on my FSX machine. However, this was not the case. In the Windows Control Panel these Visual C++ 2010 redistributables were installed. Some time later I noticed MSVCR100D.dll is a debugging dll that is not included in the normal redistributables but it is existing on my Visual Studio machine. That made sense, since I had compiled the source as a ‘debug’ executable. Just changed the compilation output in Visual Studio to ‘release’ and then I got the error that the SimConnect.h could not be found while compiling the project.
This also made sense, since in the properties of the project I didn’t specify the path to the SDK include folder (inc) where SimConnect.h is located in the Configuration Properties – VC++ Directories – Include directories. Directly I also added the path to the path to the SDK library folder (lib) where SimConnect.lib is located in the Configuration Properties – VC++ Directories – Library Directories.
Still after that I was not able to compile the project, since the compiler was not able to resolve the externals to the several SimConnect calls in ThrottleControl.cpp. This was fixed after a while by adding the complete path to the SimConnect.lib file in Configuration Properties – Linker – Input – Additional Dependencies:
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X SDK\SDK\Core Utilities Kit\SimConnect SDK\lib\SimConnect.lib
After that, I was able to compile the project and also after copying the Throttle Control.exe to my FSX machine, the program was running fine. However I still didn’t got the ‘A’ and ‘Z’ keys to control the throttle. It is a bug in the source, that I will investigate maybe later, however I was happy to have a simple sample SimConnect program running and interacting with my Flight Simulator. By the way some other already compiled sample executables did run properly.
I just want to share my experience in order to help you whenever you are having difficulties compiling FSX SDK SimConnect code and deploying it on another machine on which Visual Studio is not installed.
wordpress theme by initheme.com