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.

extra data provided to a gauge callback

Featured Replies

This question is for C/C++ gauge developer.When the gauge callback is called with service_id PANEL_SERVICE_PRE_INSTALL or PANEL_SERVICE_POST_INSTALL, the value of the parameter "extra_data" is the resource_handle.Can someone tell me what this is? Is it the instance handle of the gauge file, which is a DLL? Is it another handle?Thanks for any info.Eric

I'm not 100% sure if it is the resource handle or a handle to a module a resource can be loaded of (maybe the same). However some sound modules for gauges (e.g. rfgutils.lib) can load a wav file embedded in the gauge itself (load it from the resource part of the gauge). Using ((HINSTANCE)extra_data) as the resource handle does the trick. Maybe even image loading is possible, e.g. with Gdi+ and Bitmap::FromResource((HINSTANCE)extra_data,bitmapName);Quite some time ago when I checked, but I think ((HINSTANCE)extra_data) is different to GetModuleHandle(NULL) (to get a handle to the .gau file).Arne Bartels

GetModuleHandle(NULL) returns not handle of your gau file but handle of main executable. In FS9 it will return handle of fs9.exeGetModuleHandle("mygauge.gau") returns handle of given gauge file name.

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.