I want to write an application that I can run from the console where it loads settings from a config file. I also want to be able to double click on the executable and obtain a GUI where I can specify settings that will be stored in the config file. After I'm finished in the GUI i'd like to spawn a process and exit the GUI.
I did something similiar to this in a Java programming class I took 6 years ago. But having it been 6 years ago and never finding it practical to have a program function in this way I have forgotten how to do it.
If someone could shed some light on the problem or offer a solution it would be apprechiated.