Link to home
Start Free TrialLog in
Avatar of _davidharris
_davidharris

asked on

Creating an intuitive user interface - Remembering the last file the user was working with

Most applications allow users to close a project in mid-edit and then re-open the project later and the application will just start where you left off with the project. I am creating a program that does this, and what I'm wondering is would I just create my own method to do this or is there something I need to do as far as windows programming goes? Do I need to setup an object that the operating system recognizes as the most recent project for some reason? Or, can I just save some data file somewhere that says basically what file to load and where to place the cursor and so on?
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

I don't know of any inbuilt method to do that.  You will have to code it yourself.  
When they close the program, where they left off won't be in memory...you'll have to load it from somewhere, like a file.
Avatar of _davidharris
_davidharris

ASKER

Yeah I understand that. I was just wondering if there was something I needed to setup with Windows. Most programs have that as a feature but I was just thinking that the operating system was somehow responsible for some of that. Actually, what I was think was specifically would these programs use an .ini file maybe? And then would they're be a like a specific format for doing this. Maybe so that other programs could somehow use and view the state of your program. Make sense? So I was just making sure that I wouldn't have to write my program's routines out one way and then later have to re-write them.
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That helps. I really should just google this stuff but I thought I'd ask. Thanks for your help.