Sub-Application & INI Files
In frame 1 is my main frame. In frame two I have a much smaller (i.e. dimensions of the frame) frame. I have it set to when you click a button it loads the second frame (set as a sub-application) in to frame 1. Everything is working fine, however, I have an issue with the use of INI files.
I use the INI file to store information the user inputs or from what they select (i.e. radio buttons, selection from a combo box, etc).
When I go to load some of this information in to the second frame I have to set everything back up in the INI file. That is, I have to have it set the group, set the items, and set their values. Granted the information is already stored in the INI file but for some reason the only way the second frame can access it is if I have it all set back up at the beginning of the second frame.
Is there something I'm missing on using INI files across frames? I even tried getting what I want done in the second frame by just using it as a regular frame and not even using the sub-application object. No matter where I use the sub-application object or whether the events/actions occur independantly in frame 2 can it access the INI file.
Re: Sub-Application & INI Files
try the INI++ object with "global data" set to the same value for the different INI objects. They will pull their memory from the same location.
Re: Sub-Application & INI Files
Thanks for the suggestion of the INI++ object. Since I only have about 4-5 or so separate pieces of data to store I've decided to just store it as global values and global strings.
However, I did test out the INI++ object and.. well.. Wow! Anyone that has game/app data they want to store but keep it minimally secure should definitely use this. The built in encryption feature is very easy to use and pretty awesome.