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.

FS version

Featured Replies

As I'd like my gauges to work both for FS2002 and FS2004, do you know a way to get the current FS version number?Some things work differently in FS2002 and FS2004, so the gauges need to know what version of FS is running.Eric

Hi Eric,Here's some code I developed for FSConnect:int GetFSInfo(PUINT VerHi, PUINT VerLo, char *pExeName) { char filename[255]; DWORD dummy, InfoSize; PVOID lpInfo; VS_FIXEDFILEINFO *lpBuff; UINT BuffLen; int res; GetModuleFileName(NULL, filename, 254); InfoSize = GetFileVersionInfoSize(filename, &dummy); if (InfoSize < 1) return errNoFSVersion; lpInfo = VirtualAlloc(NULL, InfoSize, MEM_COMMIT, PAGE_READWRITE); if (lpInfo == NULL) return errNoFSVersion; res = GetFileVersionInfo(filename, 0, InfoSize, lpInfo); if (res == 0) return errNoFSVersion; res = VerQueryValue(lpInfo, "", (void **)&lpBuff, &BuffLen); if (res == 0) return errNoFSVersion; *VerHi = lpBuff->dwProductVersionMS; *VerLo = lpBuff->dwProductVersionLS; VirtualFree(lpInfo, 0, MEM_RELEASE); strcpy(pExeName, strrchr(filename, '') + 1); return 0;}Cheers,Russ Dirks

Thanks !!It looks quite tricky, but I think I can understand the code.Eric

You can just do GetModuleFileName(NULL, filename, 254);And look at extracted file name. If it ends with fs9.exe - this is 2004 :)

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.