Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - [SOLVED!] Best way to save settings?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED!] Best way to save settings?

 Post Reply Post Reply
Author
Message
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED!] Best way to save settings?
    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
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Carlos Rocha View Drop Down
Groupie
Groupie


Joined: 11 February 2008
Location: Portugal
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carlos Rocha Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Carlos Rocha View Drop Down
Groupie
Groupie


Joined: 11 February 2008
Location: Portugal
Status: Offline
Points: 92
Post Options Post Options   Thanks (0) Thanks(0)   Quote Carlos Rocha Quote  Post ReplyReply Direct Link To This Post 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
SuitePro 20.3.0
OS: Windows 10
Language: Visual Objects 2.8
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
shipwreck View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 April 2008
Location: United States
Status: Offline
Points: 308
Post Options Post Options   Thanks (0) Thanks(0)   Quote shipwreck Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.