Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

Can I retrieve the FSX flightplan folder path via FSUIPC (e.g.My documents\Flight Simulator X Files) ? I now get the path to the My documents folder from the registry and add "Flight Simulator X files") but then I may miss the localisation differences...

Thanks,

Björn

Posted

Hi Björn,

Indeed FSUIPC will not help you retrieving the "My documents" path. Rather than reading the registry, I will suggest you use the SHGetSpecialFolderLocation API with the adequate idl structure (&H5 for folder item). This is a more general approach that will also work on Vista. You will then have to append the "Flight Simulator Files" (FS9) or "Flight Simulator X Files" subfolder to complete the work

Hervé

Posted

Hi Hervé,

That is in fact exactly what I am doing now but... then I learned that in the German version of FS9 the folder was called "Flight Simulator - dateien" ! Possibly FSX doesn't use these localised folder names anymore but to be sure it would be much better if I could retrieve the folder name directly.

Kind regards,

Björn

Posted

Hi Björn,

You're right. My mistake is that I own and use an English FS9 version. In the French FS9 version, this subfolder is named "Fichiers Flight Simulator". Now, I didn't find a single registry key with it neither I could find a reference to this folder in the FS9.cfg file (except as part of the [uSERINTERFACE] Situation= item). May be someone else or Pete, could tell us if there is a way to retrieve the proper localized name of this subfolder. As regard FSX, the same could be true. Again I only own an English version.

Regards

Hervé

[Edit]: here is the answer and the way to proceed by Pete : http://www.fsdeveloper.com/forum/archiv-4243.html

Posted

Indeed FSUIPC will not help you retrieving the "My documents" path. Rather than reading the registry, I will suggest you use the SHGetSpecialFolderLocation API with the adequate idl structure (&H5 for folder item). This is a more general approach that will also work on Vista. You will then have to append the "Flight Simulator Files" (FS9) or "Flight Simulator X Files" subfolder to complete the work

Actually, FSUIPC has long provided the full path to "where FS will save flights", which is the default PLANs folder too -- see offset 1000. The path is provided in UNC format when appropriate, so that it can be used from WideFS client PCs too.

Regards

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.