Re: Registry keys for my application
From: Frank Carr (jfcarr_at_msn.com)
Date: 03/30/04
- Next message: Richard J: "RE: Evaulation Boolean Expression"
- Previous message: Ashish Kanoongo: "rename - Treeview node"
- In reply to: Bob Butler: "Re: Registry keys for my application"
- Next in thread: Steven Burn: "Re: Registry keys for my application"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 30 Mar 2004 08:25:46 -0500
"Bob Butler" <tiredofit@nospam.com> wrote in message
news:uF0shlbFEHA.696@TK2MSFTNGP12.phx.gbl...
> IMO, none. Use an INI file or some other private location. Private data
> does not belong in a public repository.
INI is fine for single users and for overall program settings that aren't
user specific but when you have multiple users with their own preferences,
for example, under Terminal Server, using the registry makes it easy to keep
up with each user's settings. To use INI files you would have to create a
uniquely named file or cram everything into a single INI (aka a 'public
repository') if you kept that file in the program's directory. Another
alternative would be to store individual settings files under the "Documents
and Settings" folder structure but this structure isn't around in Win98/95
and would be more complex to code.
> If you do it
> yourself it'd probably be
hkey_current_user\software\<vendor>\<application>
This is an important point. Any data like this should go under
HKEY_CURRENT_USER, not HKEY_LOCAL_MACHINE. Otherwise you will encounter
security issues on a well managed network. It's amazing how many programs
try to write to local machine.
-- Frank Carr jfcarr@msn.com http://www15.brinkster.com/vbnotebook
- Next message: Richard J: "RE: Evaulation Boolean Expression"
- Previous message: Ashish Kanoongo: "rename - Treeview node"
- In reply to: Bob Butler: "Re: Registry keys for my application"
- Next in thread: Steven Burn: "Re: Registry keys for my application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|