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.

Can you read the fs9.cfg directly?

Featured Replies

Is there a way to detect the location of the fs9.cfg automatically by C gauges? I can read it with e.g. GetPrivateProfileString if I know the exact path, no problem. But how to get that path? Or, are there global variables that store that "user data" path somewhere?Arne Bartels

There's shell variable called "USERPROFILE" which contains the path you need but I'm pretty sure that it only exists in Windows XP so it won't be very helpful.

OK, found it myself:#include ...char appdata[MAX_PATH+1]="";char value[255+1]="";...SHGetSpecialFolderPath(NULL,appdata,CSIDL_APPDATA,FALSE);strcat(appdata,"MicrosoftFS9fs9.cfg"); ...GetPrivateProfileString("PANELS","IMAGE_QUALITY","",value,sizeof(value)-1,appdata);link shell32.lib.Possibly the exename has to be used, not "fs9.cfg" hardwired. If the exe is renamed, the .cfg file uses this new name.Arne BartelsP.S. checked with XP SP2 and W98SE

Hey, den kannte ich noch nicht. Vielen Dank :-)

Wildes Suchen hilft manchmal. Erst hatte ich Appdata als Begriff gefunden, bei MSDN fiel mir dann irgendwann "SHGetSpecialFolderPath" vor die F

I was going to suggest you guys get new keyboards!:-lolW. Sieffert

Bill Sieffert

You can also scan the software keys in the Windows registry - I haven't looked but I'm pretty sure that the install folder is in the LOCAL_MACHINE/software hive and the path to the CFG is in the LOCAL_USER/software hive (since each user has a personal copy of the CFG file).That should work with Windows 2000 or Windows XP.

In adition a check if the exe name/cfg name is NOT fs9:#include #include ... char appdata[MAX_PATH+1] = "", exename[MAX_PATH+1] = "", *helper = NULL;... //get full exe pathname GetModuleFileName(NULL,exename,MAX_PATH); //cut path helper=strrchr(exename,''); if(helper) sprintf(exename,"%s",helper+1); //cut .exe suffix helper=strstr(exename,".exe"); if(helper) *helper=0; //get FS9.cfg path, first appdata, then rest SHGetSpecialFolderPath(NULL,appdata,CSIDL_APPDATA,FALSE); sprintf(appdata,"%sMicrosoftFS9%s.cfg",appdata,exename); ...Arne Bartels

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.