|
-
Oct 13th, 2004, 12:58 PM
#1
Thread Starter
Hyperactive Member
[Resolved] Multiple App Instances and Registry Settings
I have an app that stores/reads it's parameters from the registry.
I'd like to allow the user to run multiple copies from the same install on the same machine - kind of like you do with wordpad.
The problem is that I'd like each running instance to be able to access a different set of parameters and I don't neccesarily know how many instances will be running.
Does anyone have experience with multiple copies of an App running on the same machine?
Should I be storing the parameters in an ini file and 'pointing' each instance to a different file when started?
Thanks.
Last edited by wayneh; Oct 19th, 2004 at 05:28 PM.
-
Oct 13th, 2004, 03:44 PM
#2
Fanatic Member
are these parameters going to persist through open/close of the application?
are there going to be user parameters passed from this application?
here's a couple of ideas in either case -
persistent parameters could be set in the registry (if that's how you want to go about it).
Each application can have a text file (<uniqueId>.ini ) that then reads the persistent parameters from registry and writes them to this <uniqueId>.ini file.
Then each application will have its own copy to work with.
The application can generate a unique number that is then used to construct the file and populate it.
just some idea's to get you going...
-
Oct 13th, 2004, 03:58 PM
#3
Thread Starter
Hyperactive Member
Thanks for the ideas....
I've decided to put instance specific params into an xml file which is read at app startup.
The xml file name is passed as a command param either from the command line or from a shortcut.
Non-specific params are held in the registry.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|