Home » Community » Newbie corner » Initial settings for U++ application
Re: Initial settings for U++ application [message #27526 is a reply to message #27282] |
Thu, 22 July 2010 07:58   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
I tried for a few hours to get the sample to run with no luck.
Linking errors, probably a simple fix for someone that knows what they are doing.
I ended up creating a text config file that is read when the app starts.
Each line sets a variable.
Clicking the red x at the top of the window exits the app without changing the config file.
Clicking "File" -> "Save Exit" saves any changes to the config file.
Works OK.
I did run into one glitch.
I use atof for other parts of the app that works fine.
atoi for the integers gave errors.
Had to compare characters.
while(!in.IsEof()){
String Ln = in.GetLine();
if (i==0) {
if (Ln=="0") Setm();
if (Ln=="1") Setkm();
if (Ln=="2") Setft();
if (Ln=="3") Setmi();
if (Ln=="4") Setnmi();
}
if (i==1) {
....
[Updated on: Thu, 22 July 2010 08:16] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 22:24:38 CEST 2025
Total time taken to generate the page: 0.00658 seconds
|