Results 1 to 3 of 3

Thread: [Resolved] Multiple App Instances and Registry Settings

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406

    Resolved [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.

  2. #2
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548
    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...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Sunny Southern Weather
    Posts
    406
    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
  •  



Click Here to Expand Forum to Full Width