Print Page | Close Window

[SOLVED!] Best way to save settings?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=16001
Printed Date: 16 May 2024 at 7:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED!] Best way to save settings?
Posted By: shipwreck
Subject: [SOLVED!] Best way to save settings?
Date 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



Replies:
Posted By: shipwreck
Date Posted: 13 January 2010 at 9:19pm
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


Posted By: Carlos Rocha
Date Posted: 13 January 2010 at 11:40pm
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


Posted By: shipwreck
Date Posted: 13 January 2010 at 11:56pm
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


Posted By: Carlos Rocha
Date Posted: 14 January 2010 at 12:23am
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 - http://www.nirsoft.net/cmp/index.html

-------------
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8


Posted By: shipwreck
Date Posted: 14 January 2010 at 12:33am
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


Posted By: shipwreck
Date Posted: 14 January 2010 at 2:07am
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net