- Messages
- 1,749
- Country

I am looking for a C++ writer to write me a code for a project.
I am willing to trade or pay for your services.
DG
I am willing to trade or pay for your services.
DG
Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.
By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.



In addition to what Umberto said: or even XML if it's a gauge.
No, XML would not be able to handle modifying the aircraft.cfg load stations since it has no file read/write capability.



This is how ADE does it in C#. This is for FSX - there is another for FS9 that I will leave you to figure out if you need it
It is set up as a static read only property but you could change it to a method of course...
Code:/// <summary> /// Accessed the registry to find the current path to FSX /// </summary> /// <returns>Returns path to FSX or empty string if not found</returns> public static string FsxPath { get { //return string.Empty; string path = string.Empty; RegistryKey key = Registry.LocalMachine.OpenSubKey( @"Software\Wow6432Node\Microsoft\Microsoft Games\Flight Simulator\10.0"); if (key != null) { if (key.GetValue("SetupPath") != null) path = (string)key.GetValue("SetupPath"); } key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Microsoft Games\flight simulator\10.0"); if (key != null) { if (key.GetValue("SetupPath") != null) path = (string)key.GetValue("SetupPath"); } return path; } }
