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.

Is this possible???

Featured Replies

  • Commercial Member

I have created a dll app in C# and wanted to import it into C++ to create a gauge with FSX.Can or has this be done? I am newbee when it comes to C++ and creating gauges.Reed

Reed Stough
Managing Partner
REX SIMULATIONS 

website:  www.rexsimulations.com
supportwww.rexaxis.com

Reed,You can't "import" a program written in one language (C# in your case) into a program in another language (C++ in your case). Although the look alot alike to the untrained eye, they are different. Many things are done for you in the C# environment that you have to do on your own in C++.You can "port" a program, but this involves essentially translating (re-writing) the thing from one language to another.However, C++ is much more complex than C# (which is more akin to Visual Basic), and so it is not a simple thing to do, especially if you have extensively used .NET libraries, which do not exist in C++ (although they do in managed C++).You can, in fact, write a gauge that uses managed code, however this is very advanced as it requires a part of the gauge to be in C, and a part in managed code. This requires very advanced communication between the managed and unmanaged code, called marshalling. Given your question it is definately beyond what you'll want to attempt.Learn C++, and the SimConnect API, and then write your code in C++ using your C# code as a guide. If your code is not making much use of the .NET libraries this should not be to difficult for you.

BTW, you can use SimConnect to interface to FSX with SimConnect, without having to use C/C++.

Hi Reed,yes it can be done: having a application in C++ calling a C# DLL function (and the reverse). But like described below, it may not prove to be very easy when considering the opportunity to convert a C# code to C++ for example.I think Jose Oliveira is probably one of the most knowledgeable programmer in the community in C#, and may better help you at fsdevelopper.comHope this helps!

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.