BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Proper use of the Registry

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Gord
Guest





PostPosted: Mon May 02, 2005 3:31 am    Post subject: Proper use of the Registry Reply with quote



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





PostPosted: Mon May 02, 2005 6:13 am    Post subject: Re: Proper use of the Registry Reply with quote



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





PostPosted: Mon May 02, 2005 7:05 am    Post subject: Re: Proper use of the Registry Reply with quote



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





PostPosted: Mon May 02, 2005 1:33 pm    Post subject: Re: Proper use of the Registry Reply with quote

the question was about PROPER USE of registry =) not technical


Back to top
Dirk Schnitzler
Guest





PostPosted: Mon May 02, 2005 3:11 pm    Post subject: Re: Proper use of the Registry Reply with quote


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





PostPosted: Mon May 02, 2005 6:50 pm    Post subject: Re: Proper use of the Registry Reply with quote

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





PostPosted: Mon May 02, 2005 6:53 pm    Post subject: Re: Proper use of the Registry Reply with quote

Dirk Schnitzler wrote:

Quote:
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...)


Thanks. Thats a good example of a use of the registry for the developer.



Back to top
Danila Vershinin
Guest





PostPosted: Tue May 03, 2005 5:27 am    Post subject: Re: Proper use of the Registry Reply with quote

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





PostPosted: Tue May 03, 2005 6:35 pm    Post subject: Re: Proper use of the Registry Reply with quote

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





PostPosted: Wed May 04, 2005 9:38 am    Post subject: Re: Proper use of the Registry Reply with quote


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





PostPosted: Thu May 05, 2005 4:14 am    Post subject: Re: Proper use of the Registry Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.