Important alert: (current site time 7/15/2013 5:46:22 PM EDT)
 

winzip icon

a Registry Class

Email
Submitted on: 10/1/2001 2:25:16 AM
By: Yves Lessard 
Level: Intermediate
User Rating: By 17 Users
Compatibility: Microsoft Visual C++
Views: 24363
(About the author)
 
     This is a Class to help you on Registry functions. This Class in WIN32(so it works in MFC, ATL, WIN32) and it is full UNICODE. Most of these Class found on internet do not delete properly Key and SubKey in WinNT (or they need help of Shlwapi.dll, and it is a complicate story). This Class use Instead a Recursive function to do the Job (no special include need). It uses a template for all those special structure like CPoint, RECT, ... you named it. PS:: Here is the latest release.
 
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.

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 3 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 Intermediate 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
10/18/2001 1:32:54 AMARAM @ WAYZ

Very well done! Voted excellent. Thanks for sharing.
(If this comment was disrespectful, please report it.)

 
11/10/2001 12:05:56 AMTaLF

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

 
6/22/2002 9:59:18 AMAlexey

Thank you VERY MUCH for this GREAT CODE!
Thank You!
(If this comment was disrespectful, please report it.)

 
12/30/2002 5:02:24 PM

Great Code!. Compact and easy to use.

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

 
4/20/2003 10:31:34 PMmr_puniverse00

Just thought that some people might want to know..if you replace all the 'try' with '_try' and all the 'catch(...)' with '_except(EXCEPTION_EXECUTE_HANDLER)', then you can use this class in Windows CE too.
(If this comment was disrespectful, please report it.)

 
6/21/2003 4:37:27 PM

There is error
If i call Open with "write enabled" and the key already exist. Open will always return FALSE result.
And i am not sure is it okay to send in RecCreateKeyEx for lpClass parameter "0" ? Maybe it1s better to send "REG_SZ" or other because in write functions you are owerwriting it.
(If this comment was disrespectful, please report it.)

 
8/6/2003 1:00:32 AM

test
(If this comment was disrespectful, please report it.)

 
9/29/2003 3:11:47 AM

Elegant Codes ! Thanks !
(If this comment was disrespectful, please report it.)

 
11/10/2003 3:48:25 PMMohit Aggarwal

You rock man!!! nice work
(If this comment was disrespectful, please report it.)

 
12/17/2003 8:06:56 AM

Nice code, thanks for sharing it.

I have one question. How do can I read
(If this comment was disrespectful, please report it.)

 
12/17/2003 8:07:56 AM

Nice code, thanks for sharing it.

I have one question. How do can I read "(Standard)" fields? I have tried with am empty field but no luck ( eg Default_Result = test_reg.Read("", ""); ).

Thanks,
Jason
(If this comment was disrespectful, please report it.)

 
3/3/2004 4:49:30 AM

thankx
(If this comment was disrespectful, please report it.)

 
4/19/2004 3:48:27 AMZak Farrington

I love it, use this class on all of my apps!
(If this comment was disrespectful, please report it.)

 
4/26/2004 9:19:48 PM

How do i use this code in my application to register it?
(If this comment was disrespectful, please report it.)

 
9/19/2005 2:46:42 PMakram

thank you for adding me to ypur group
(If this comment was disrespectful, please report it.)

 
9/19/2005 2:49:19 PMakram

it is very good thank you very much
(If this comment was disrespectful, please report it.)

 
11/25/2005 3:32:50 AMarief

hi, everybody, today i want to join with u, please give me many tutorial in C/C++ for hardware. Thanks

best regards,

arief
(If this comment was disrespectful, please report it.)

 
5/23/2010 5:04:29 AM

cool

(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.