Important alert: (current site time 7/16/2013 1:48:21 AM EDT)
 

winzip icon

_Store data in the Registry_

Email
Submitted on: 11/21/2001 9:12:53 PM
By: Nerd  
Level: Beginner
User Rating: By 35 Users
Compatibility: VB 6.0
Views: 35070
author picture
 
     beginner example of saving and reading data from the registry. made from a module i found on PSC.
 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 8 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
3/11/2002 1:16:04 PMKrishnan .R

Great and Thanks , ihave been working on this for a long time .
(If this comment was disrespectful, please report it.)

 
3/25/2002 10:07:02 PMDanny Weyand

I'm sure you didn't mean to but I thought I'd warn you, when I run this code in my own programs, though not in yours, I get a warning from Norton Antivirus warning to stop this script immediately.
(If this comment was disrespectful, please report it.)

 
4/5/2002 11:19:44 PMsquadron7

If you were here Id shake your hand - THE EXACT CODE I NEED - Thanx man, email me z3r0n@hotmail.com
(If this comment was disrespectful, please report it.)

 
4/16/2002 3:37:54 PMAlan

Thanks this is simpler than the registry API calls.
(If this comment was disrespectful, please report it.)

 
6/27/2002 6:15:49 PMTrav

Just what I needed, thanks!
(If this comment was disrespectful, please report it.)

 
7/1/2002 8:23:34 PMAnarchist

Thanks, this really helps me out with the little registry editing. Its small, useful, and easy. Great Code!
(If this comment was disrespectful, please report it.)

 
7/17/2002 12:45:51 PMSamudra

Great code man, it (and u) helps me.
(If this comment was disrespectful, please report it.)

 
7/30/2002 5:34:34 PMShadowfax

You rule, this helps me so much.
(If this comment was disrespectful, please report it.)

 
8/9/2002 11:41:19 AMUsrhlp

Wicked, i released the registry edit source code on PSC a couple of years back, but this makes it so much easier for new people to use, Good release man, well done!
(If this comment was disrespectful, please report it.)

 
8/28/2002 6:33:19 AMJulien Lecomte

If you use the scripting objects, all antivirus will think this is running from a vbs file and thus think it might be a virus. That means that this example can't be used in any *real* dev environment : you can't release any software with a antivirus popup ! Even if it's rated as beginner code, might as well start learning the real API techniques instead of learning beginner workarounds.
(If this comment was disrespectful, please report it.)

 
9/12/2002 1:33:35 PMChump*

Hass anyone been able to get this thing to read more than one key in a directory? if you could tell me how by email big_mojo@yahoo.com
(If this comment was disrespectful, please report it.)

 
10/1/2002 8:40:09 PM

Very simple to use and understand, this is great.
(If this comment was disrespectful, please report it.)

 
10/28/2002 5:36:21 PM

danny, the virus scanner doesnt want it writing to the registry, but It wont werk for me either.
(If this comment was disrespectful, please report it.)

 
3/25/2003 7:20:33 PMNeftali Bonilla

Thanks for this code. You made my day. Thanks again!
(If this comment was disrespectful, please report it.)

 
4/15/2003 3:42:08 PMShane Reidy

WOW! great code...way better than registry api's
(If this comment was disrespectful, please report it.)

 
10/12/2003 4:12:28 AM

Nice Code man... this is the first time I Vote in PSC... I get What I Wanted... 5 gloves for you... keep it up
(If this comment was disrespectful, please report it.)

 
11/23/2003 2:28:38 PM

can some one please post a source code that adds reg not a programe i want to add a few reg for my programe
contact me at ferrari0george@hotmail.com
(If this comment was disrespectful, please report it.)

 
1/31/2004 12:43:26 AMTony G

My brain went ga, ga. I'm seem writing greeting cards now. Here goes, You code is like a ray of sunshine, I am glad to have found it. 5 globes.
(If this comment was disrespectful, please report it.)

 
4/6/2004 12:22:58 AM

GREAT CODE!

very simple!
(If this comment was disrespectful, please report it.)

 
4/6/2004 10:05:17 PM

great! ive looking around for something to do registry editing and such easily and i found (im new to vb)
(If this comment was disrespectful, please report it.)

 
7/28/2004 3:26:22 PM

very good code! 5g from me
(If this comment was disrespectful, please report it.)

 
6/10/2005 7:49:38 AM

nice.. simple and effective.. as code should be!
(If this comment was disrespectful, please report it.)

 
6/24/2005 12:58:04 AM

nice and clean.
(If this comment was disrespectful, please report it.)

 
3/17/2006 5:54:09 AMedwin

Just what i needed great!!!!!!!!!!!11
(If this comment was disrespectful, please report it.)

 
1/16/2007 3:57:35 AMwilbert

it didnt work out
(If this comment was disrespectful, please report it.)

 
4/8/2007 8:06:45 AMAshley Summers

great code thank you:)
(If this comment was disrespectful, please report it.)

 
2/13/2008 3:36:03 AMGlenn Sarsonas

Simple and it works. This is what I needed for my next project. thanks!!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.