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.
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:
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:
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!
I dont like to use the registry, if every application uses the registry, the registry will be full of useless keys in a while...
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
edit:
By that I mean the settings are like a virtual registry
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.
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!
They use registry, but probably not for the registration. I dont see how the registry is more secure
Exactly, they would use the registry only for filetypes or specific information not found in My.Settings...
not everyone is admin on his or her computer
so i don't think they can access the register :(
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
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
Dummy1912 wrote:not everyone is admin on his or her computerEXAGGERACTELY
so i don't think they can access the register :(
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
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
smashapps wrote:But people who want to make their application a little bit more advanced and secureThe 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 computerAdmin 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.
so i don't think they can access the register
Personally I tend to use files to store settings as other operating systems may not even have a registry.
Copyright Information
Copyright © Codenstuff.com 2020 - 2023