[SOLVED!] Best way to save settings? |
Post Reply |
Author | |
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
Posted: 13 January 2010 at 9:19pm |
I'm not sure if this would fall under the command bars category but I am in need of desperate assistance.
I have an app that will be used by multiple users on a single computer and I would like each user to have their own customizable settings that won't interfere with another user's settings. I have seen several different ways to save settings within an app (I currently use .INI files to do so.) And unfortunately, I don't have any idea to implement this into my app. Currently it loads an INI file located in the app.path but that would make all users have the same settings right? |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
I would really appreciate some help on this one folks. Please!
Thanks and Regards in advance! |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
If loading an .INI file is working for you, why don't you ask for a login and load the corresponding .INI? The program needs to know who is the user anyway.
|
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Well that's actually the problem. I'm trying to avoid a login window of any kind within the app for settings.
Let me try and explain a little more clearer. Take mozilla Firefox for example. You can install the app once and add multiple shortcuts to each user. Even though its the same app, each user can have there own unique setup without interfering with another user's settings. Does that make things a bit clearer? Also, if you know a way to do this, it doesn't have to be an .INI file. |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Carlos Rocha
Groupie Joined: 11 February 2008 Location: Portugal Status: Offline Points: 92 |
Post Options
Thanks(0)
|
I see. What you need is to store settings in the user folder. I believe it's possible to query the OS for the folder location, thought I don't know how, or else maybe NirCmd can help you:
http://www.nirsoft.net/cmp/index.html |
|
SuitePro 20.3.0
OS: Windows 10 Language: Visual Objects 2.8 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Okay Carlos, I'll take a look at that website later. But I think the way to do it is within the Windows Registry. I appreciate the assistance though. So I would like to include you within the credits of this application if you don't mind.
|
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
shipwreck
Senior Member Joined: 18 April 2008 Location: United States Status: Offline Points: 308 |
Post Options
Thanks(0)
|
Hello Carlos & everyone else!
I solved my problem with the best way to save settings. I went ahead and decided to use the Windows Registry option and it works great. No customization made by one user will mess with the other. Yay! (Carlos, you'll still be included in the credits!) |
|
Product: Xtreme Suite Pro (Active-X), Version 15.3.1
Platform: Windows 7 Ultimate SP1 (64Bit) & Windows XP Mode SP3 (32Bit) Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |