Posted on 2000-05-03
What is the best way to initialize a program? I am using the InitInstance to initialize the variable in a generic class however the values don’t stay outside CApp class. What am I doing wrong?
Here is an example of what I am trying to do.
I have made a new class in VC++ 6 like the following:
and I like to initialize age to 20 when the program starts, I did the following:
temp.age = 20;
how ever age dose not hold this number outside the CmineApp class
I know I have some type of variable scoping;
I hope you can help me, let me know