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.

Calling a DLL in FS by a gauge

Featured Replies

  • Commercial Member

Hello guys, I am posting here since I have a question that I can not answer by myself. I would like to make a DLL that will be in the FS9/Modules folder, which does some calculations and stores some variables. What I want is interaction with a gauge that I am developing. I tried everything that I could, but I couldn't get it to work. I use this code for the DLL:http://www.squawkbox.ca/downloads.php Does anybody know on how I should proceed for interaction between the gauge and the DLL. I don't want anything complex, for start create a variable in the DLL, set a value to it, and be able to obtain the value in my gauge. Thank you very much for your help.Yours Truly,Tiberiu Brasovhttp://www.eaglesoftdg.com/staff_Images/TB.gif

TiberiuYou really need to be able to include GAUGES.H or fs9gauges.h in your module to do this. This inclusion will allow you access to all the FS gauges functions and variables in your module. It will, for instance allow the 'register_var_by_name' command which will make sharing data with gauges somewhat easier. To do this, your import table and linkage definitions need to look like this:/* This is the module's import table. */ GAUGESIMPORT ImportTable = { { 0x0000000F, (PPANELS)NULL }, { 0x00000000, NULL } }; /* This is the module's export table. */ GAUGESLINKAGE Linkage = { 0x000002d9, module_init, module_deinit, 0, 0, FS9LINK_VERSION, {0} };If you want, I have a working example I can e-mail you.Doug

  • Author
  • Commercial Member

Hello Doug, Thank you very much for your reply. The snippet that you provided is interesting and I will take a look at it when I will get the chance. I am interested in a working example. You can email it to me at [email protected] you!Yours Truly,Tiberiu Brasovhttp://eaglesoftdg.com/staff_Images/TB.gif

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.