Page 1 of 2
Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 1:31 pm
by smashapps
I have some examples I have created especially for you guys!
The first is a Registry Key Creator, use it to create registry keys, set the value and the string of the value you set, and the second is a key reader, specify the value and the path and it will return the string of the value.
Using the examples you can implement this into your applications to read information from the registry rather than settings. This is very handy because you won't lose data as often, and it will make your programs more secure!
Here are some screen shots:
The full source code of both applications:
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 1:37 pm
by Axel
I dont like to use the registry, if every application uses the registry, the registry will be full of useless keys in a while...
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 1:40 pm
by Agust1337
Yes I agree with Axel, and also it can be dangerous to play around with the registry, so I guess that's the main reason Microsoft even made the settings.
edit:
By that I mean the settings are like a virtual registry
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 1:42 pm
by smashapps
I know what you are saying,
But people who want to make their application a little bit more advanced and secure than this is definitely the way to go, You don't see big anti virus programs using My.Settings, and most Shareware applications that make allot of money use registry too.
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 2:06 pm
by Axel
They use registry, but probably not for the registration. I dont see how the registry is more secure
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 2:29 pm
by comathi
Exactly, they would use the registry only for filetypes or specific information not found in My.Settings...
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 4:13 pm
by Dummy1912
not everyone is admin on his or her computer
so i don't think they can access the register :(
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 4:41 pm
by Axel
Dummy1912 wrote:not everyone is admin on his or her computer
so i don't think they can access the register :(
EXAGGERACTELY
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 4:48 pm
by Dummy1912
Axel wrote:
EXAGGERACTELY
??? euh..
Re: Forget My.Settings, Use Registry!
Posted: Fri Nov 11, 2011 11:16 pm
by mandai
smashapps wrote:But people who want to make their application a little bit more advanced and secure
The registry is not actually secure, as it is fairly easy to trace registry data back to an application.
Dummy1912 wrote:not everyone is admin on his or her computer
so i don't think they can access the register
Admin rights are only required to alter local machine settings; every user account will have a separate area of the registry where data can be stored.
Personally I tend to use files to store settings as other operating systems may not even have a registry.