September 20, 200916 yr Commercial Member Hi,I've created an INS gauge that can read and load FSX flightplans. Up until now I retrieved these flightplans by checking the "Flight Simulator X files" folder in the "My documents" folder. I retrieve the path to the localized "my documents" folder through a standard API call.I was not aware however that the "Flight Simulator X files" folder name in itself is also localized in different language editions of FSX ! Now I was wondering if there is any way to find this path ?I checked the registry and it isn't there, FSUIPC also seems to be unable to get the correct path, so is there any other way ?Thx for helping,Bj Bj
September 20, 200916 yr May I suggest you post your question over at the FSDeveloper forums - the design "heavyweights" hang out there and could probably be of assistance:http://www.fsdeveloper.com/forum/index.phpGood luck!
September 20, 200916 yr Mine is at C:\Documents and Settings\Bob\NetHood\My Documents\Flight Simulator X Fileswhere Bob will be different on your computer. Regards, Bob.
September 20, 200916 yr Author Commercial Member Mine is at C:\Documents and Settings\Bob\NetHood\My Documents\Flight Simulator X Fileswhere Bob will be different on your computer. Regards, Bob.That's what I thought too, but it is not... The last part "Flight simulator X files" is localized, in the German FSX version it is : "Flight Simulator X - dateien", in other languages it is probably yet something else...Bj Bj
September 20, 200916 yr May I suggest you post your question over at the FSDeveloper forums - the design "heavyweights" hang out there and could probably be of assistance:http://www.fsdeveloper.com/forum/index.phpGood luck!While it is true that many "heavyweights" frequent FSDeveloper.com and FSDS (hey, I have to plug my own site, no?), the fact is that the first place to check for panel/gauge assistance is at this AVSIM "MSFS Aircraft and Panel Design Forum".Also, most of the "heavyweights" makes the design forum rounds, so it's a matter of time before someone chimes in.
September 20, 200916 yr Author Commercial Member Found it at FSDeveloper... thx for the hint OpaBj Bj
September 24, 200916 yr Commercial Member Now, there's at least two others of us that cannot find the info over at FSD.... would either Felix or Bjorn be willing to give us a LARGE clue please - preferably the URL? :( -Dai
September 24, 200916 yr Commercial Member char dll_path[MAX_PATH]; char FSFilesPath[MAX_PATH];// assuming FS_Path is a string that contains the path to the FS installation... strcpy_s(dll_path,MAX_PATH-1,FS_Path); strcat_s(dll_path,MAX_PATH-1,"\\language.dll"); HINSTANCE hInstLang = LoadLibrary(dll_path); if (hInstLang) { LoadStringA(hInstLang, 36864, &FSFilesPath[0], 128); // FSFilesPath now contains the value of 'Flight Simulator Files" based on language installation FreeLibrary(hInstLang); } Ed Wilson Mindstar AviationMy Playland - I69
September 25, 200916 yr Author Commercial Member A short note that the code that I used (and probably the code that was quoted) is written by Pete Dowson...Bj Bj
September 25, 200916 yr Commercial Member The code I presented is based on code presented by Mr. Dowson. Ed Wilson Mindstar AviationMy Playland - I69
Create an account or sign in to comment