- Messages
- 6,080
- Country
Attached is a C# windows form example of the MSFS SimConnect.
MSFS .NET requires both the Microsoft.FlightSimulator.SimConnect.dll (.NET) and the SimConnect.dll (native C++) to be in the folder with the finished program. Look near the final lines of TCalc_004.csproj.:
This will copy the SimConnect.dll to the finished debug or release folder in VS19.
The code is C# v4.72, I believe, and AnyCPU. It won't work with x86 because the SimConnect.dll is 64-bit.
MSFS .NET requires both the Microsoft.FlightSimulator.SimConnect.dll (.NET) and the SimConnect.dll (native C++) to be in the folder with the finished program. Look near the final lines of TCalc_004.csproj.:
C#:
<ItemGroup>
<Content Include=".\SimConnect.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
This will copy the SimConnect.dll to the finished debug or release folder in VS19.
The code is C# v4.72, I believe, and AnyCPU. It won't work with x86 because the SimConnect.dll is 64-bit.