PDA

View Full Version : Please Help - User Data, Ini Files, Password and Multi-Users


poohsdad
06-21-2009, 08:07 PM
HI. It's been a while since I've played with AP and now I've picked up a project that was dropped by someone else. ANy guidance (or code) you can provide is GREATLY appreciated...

I'm working on a project where I need to capture a User's Name from an input and store it in an INI written to C or another common folder. I also need to store variables for each presentation (there will be several required and optional) the user views. The thought is when someone leaves the program and starts it again, they can see where they left off (easy check marks next to the module name - nothing fancy)

I also need to be able to accommodate multiple users. Not sure if each of them would need their own INI file. I am guessing so, so that when the program starts, a menu pops up that says data is found for JOhn Doe, Joe Schmlo, and Curley Jow. If you're one of these click the name to enter your password (also stored in the ini). The ini's don't have to be secure. This isn't sensitive data or hard core courses...easy self-guided presentations.

Then, the user can generate a certificate that indicates which modules they completed and can print it.

I can see it working in my head, but just can't seem to make all the parts work. It doesn't have to be fancy or secure, just the basic stuff listed above. Thank you in advance!

longedge
06-22-2009, 03:20 AM
If I were in your position I'd first get a sheet of paper and make a schema of your project and having broken the whole thing down into manageable stages do it one at a time and test it as you go.

I always sketch things out first e.g.
1. Intro
2. Check for ini file
3. If none create one (what does it need to hold - user, password, pageno)
4. Get user name
etc. etc. etc.

Everything you mention is easily do-able but I doubt that you'll get anyone to just come up with a complete set of code for you. Make a start then post with a specific problem when you hit one.