Forget My.Settings, Use Registry!

If you have completed an application and wish to share the complete source/project files with everyone then please post it in here. Source-code files only, no tutorials.
12 posts Page 1 of 2
Contributors
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

Forget My.Settings, Use Registry!
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:

Image

Image

Image

The full source code of both applications:
You do not have the required permissions to view the files attached to this post.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Forget My.Settings, Use Registry!
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...
http://vagex.com/?ref=25000
User avatar
Agust1337
Coding God
Coding God
Posts: 2456
Joined: Fri Feb 19, 2010 8:18 pm

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
Top-notch casual Dating
User avatar
smashapps
Coding Guru
Coding Guru
Posts: 961
Joined: Tue Apr 05, 2011 8:41 am

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.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Forget My.Settings, Use Registry!
Axel
They use registry, but probably not for the registration. I dont see how the registry is more secure
http://vagex.com/?ref=25000
User avatar
comathi
Coding God
Coding God
Posts: 1242
Joined: Fri Mar 26, 2010 1:59 pm

Exactly, they would use the registry only for filetypes or specific information not found in My.Settings...
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

not everyone is admin on his or her computer
so i don't think they can access the register :(
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Forget My.Settings, Use Registry!
Axel
Dummy1912 wrote:
not everyone is admin on his or her computer
so i don't think they can access the register :(
EXAGGERACTELY
http://vagex.com/?ref=25000
User avatar
Dummy1912
VIP - Donator
VIP - Donator
Posts: 1969
Joined: Sat Aug 21, 2010 2:17 pm

Axel wrote:
EXAGGERACTELY
??? euh..
visit us on:


http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Forget My.Settings, Use Registry!
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.
12 posts Page 1 of 2
Return to “Source-Code”