| View previous topic :: View next topic |
| Author |
Message |
Gord Guest
|
Posted: Mon May 02, 2005 3:31 am Post subject: Proper use of the Registry |
|
|
Before I ask my question, let me say that I have googled until my brain
feels like google. I have also searched the MSDN site. However I can't
find any succinct web reference that addresses my question below. I
should also say that I have programmed the registry and know the basics.
My question is: What are the sorts of the things that the developer is
supposed to put in the registry and use the registry for? I am aware of
the following:
- file association
- recently used file list
- window size and location
- user preferences
- help file association
There is a *ton* of information on the web and newsgroups.
Unfortunately it is either really specific about some point or about
*how* to program the registry or about how to "tweak the registry to
have a better user experience". But I can't seem to locate anything
that describes the sorts of things the developer should be doing with
the registry.
Please add to the list of above (with hints as appropriate) or provide a
link to a good reference. Thanks for any all suggestions.
PS I am using BCB4 (and waiting for Delphi2006)
|
|
| Back to top |
|
 |
Hans Galema Guest
|
Posted: Mon May 02, 2005 6:13 am Post subject: Re: Proper use of the Registry |
|
|
Gord wrote:
| Quote: | My question is: What are the sorts of the things that the developer is
supposed to put in the registry and use the registry for?
|
Nothing. Or anything he likes.
What do you want to put in it ? Did you try ? Could you
use it as you wanted ?
Hans.
|
|
| Back to top |
|
 |
Danila Vershinin Guest
|
Posted: Mon May 02, 2005 7:05 am Post subject: Re: Proper use of the Registry |
|
|
well,
first thing that MSDN brings on:
The registry is a system-defined database that applications and system
components use to store and retrieve configuration data.
So I think as long as you write configuration data that would be a proper
use of the registry)
Only somewhere I remember I read that you better NOT store icons or anything
graphical in the registry (binary values)
-----------------------------------------------------------------------------------------
Let's define our own standarts of things in registry, since Microsoft
doesn't care... =)
|
|
| Back to top |
|
 |
Danila Vershinin Guest
|
Posted: Mon May 02, 2005 1:33 pm Post subject: Re: Proper use of the Registry |
|
|
the question was about PROPER USE of registry =) not technical
|
|
| Back to top |
|
 |
Dirk Schnitzler Guest
|
Posted: Mon May 02, 2005 3:11 pm Post subject: Re: Proper use of the Registry |
|
|
| Quote: | My question is: What are the sorts of the things that the developer is
supposed to put in the registry and use the registry for? I am aware of
the following:
|
Maybe you want to know something about the NT security model...
You can read this, for example:
http://www.nmrc.org/pub/faq/hackfaq/hackfaq-11.html
(somewhere in the middle there´s a kind of introduction to the
different reg keys...)
Regards, Dirk.
PS: I still prefer INI-files, simply because they can be edited by the
user (more easier and readable than the registry, I think...).
|
|
| Back to top |
|
 |
Gord Guest
|
Posted: Mon May 02, 2005 6:50 pm Post subject: Re: Proper use of the Registry |
|
|
Danila Vershinin wrote:
| Quote: | Let's define our own standarts of things in registry, since Microsoft
doesn't care... =)
|
Thats just the thing, Microsoft used to be pretty specific about standards and conformity
when it came to programming for Windows. But I can't find where they talk much about the
registry.
Sure I can stick whatever I want in the registryand call it later. But that's not my point.
It seems to have some specific functionality - like file association for instance. I'm sure
there are a lot of other specific instances where the developer should be using the registry
- but how do you find out?
|
|
| Back to top |
|
 |
Gord Guest
|
Posted: Mon May 02, 2005 6:53 pm Post subject: Re: Proper use of the Registry |
|
|
Dirk Schnitzler wrote:
Thanks. Thats a good example of a use of the registry for the developer.
|
|
| Back to top |
|
 |
Danila Vershinin Guest
|
Posted: Tue May 03, 2005 5:27 am Post subject: Re: Proper use of the Registry |
|
|
since Microsoft refuses "to talk about registry"..
you can use tools like RegMon to track what Microsoft programs DO with the
registry )))
|
|
| Back to top |
|
 |
Gord Guest
|
Posted: Tue May 03, 2005 6:35 pm Post subject: Re: Proper use of the Registry |
|
|
Danila Vershinin wrote:
| Quote: | since Microsoft refuses "to talk about registry"..
you can use tools like RegMon to track what Microsoft programs DO with the
registry )))
|
Thanks, it looks interesting, I think I'll install it.
|
|
| Back to top |
|
 |
Thorsten Kettner Guest
|
Posted: Wed May 04, 2005 9:38 am Post subject: Re: Proper use of the Registry |
|
|
Gord <gp.mail.no.spam (AT) telus (DOT) no.spam.net> wrote:
| Quote: | [snip]
My question is: What are the sorts of the things that the
developer is supposed to put in the registry and use the
registry for?
[snip] |
You might like to read this article in MSDN:
"Windows 2000 Registry: Latest Features and APIs Provide the
Power to Customize and Extend Your Apps"
http://msdn.microsoft.com/msdnmag/issues/1100/Registry/default.aspx
Among other suggestions you'll find this general hint: "The
specification suggests that you use files instead of entries
when the amount of data is larger than 2KB."
But I must admit, I am often not sure wether to store large data
in registry or apllication data folder. There are no real rules,
so just do as you please.
|
|
| Back to top |
|
 |
Gord Guest
|
Posted: Thu May 05, 2005 4:14 am Post subject: Re: Proper use of the Registry |
|
|
Thorsten Kettner wrote:
| Quote: | You might like to read this article in MSDN:
|
[snip]
| Quote: | Among other suggestions you'll find this general hint: "The
specification suggests that you use files instead of entries
when the amount of data is larger than 2KB."
|
Yeah, I've read elsewhere where MS discourages over-using the registry.
Thanks for the link.
|
|
| Back to top |
|
 |
|