Take the following code that I run everytime my UI starts:
CODE
static cfg_int NumTime("testvar", 0);
NumTime = NumTime + 1;
System::Windows::Forms::MessageBox::Show(int(NumTime).ToString());
NumTime = NumTime + 1;
System::Windows::Forms::MessageBox::Show(int(NumTime).ToString());
It was my understaning that this loads the configuration variable testvar with a default value of 0. The message box that is displayed *always* indicates the number 1 everytime I start the UI. It seems like the variable is always getting replaced with 0.
What am I doing wrong? Thanks.