Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

What is the "status" of using SimConnect with C#

Featured Replies

I have to admit that so far I haven't even looked at the SDK (since I didn't get to install FSX until yesterday). My primary development background is with Borland Delphi, however I'm in the process of moving towards C# (MS VisualStudio). When it comes to Delphi I know how to access MSFS via FSUIPC, however as of now SimConnect is brand new to me.Searching the net for SimCommect/C# I've seen mentioning of bugs and limitaions in the .Net implementation, and problems with C# that apparently should be easier to handle with C++ (I'd realy hate to use C++ over C#).Anyone to comment on the status of "SimConnect using C#". Is it working out of the box?, or will I need some wrapper that iron out potential problems?http://jdtllc.com/images/rcv4bannerbeta.jpgPelle F. S. Liljendal

If you want to stay in C#, it is possible to write your own wrapper for SimConnect using P/Invoke. Works well although for some of the structures returned, in particular those that contain pointers to pointers, things get a bit complex.Etienne

C# + .NET + SimConnect managed wrapper: it works fine out of the box.

There are some minor functionality differences between the unmanaged version and the managed one, but they are minimal and not typically needed (example, tagged data support).As said above, the "in the box" version works well.Etienne

  • 1 month later...

Several SimConnect methods do not work in C# yet. Examples are: 1. ExecuteMissionAction(_GUID) 2. CompleteCustomMissionActionExecute(_GUID) 3. I've been told that others exist :-hmmmNote: The _GUID data types are protected, and I still haven't found a way to access them. These methods are key, if you are trying to manage mission events via C#. The few C# examples that are supplied with the SDK, work ok...

The gaps in the .net version of Simconnect can't easily be fixed (need to get new SP), or your can bite the bullet and use Interop to write your own subset of functions you need.Be wary however that the marshaling needed to convert the C/C++ structs to the .NET managed equivalents is often horrific, in particular because of this definite love for pointer arrays of undefined size and undefined type at compile time... These are a (reasonably) easy in C/C++, but in the managed world, even with unsafe pointers, it is entirely torturous.Etienne

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.