Complete Registry Access

Posted on 2000-01-29
Medium Priority
Last Modified: 2010-04-02
Can someone send me a sample that gives complete registry access?

Need the ability to:

- Read/Write String/Boolean/DWord values.

- Create Keys.

- Delete Keys.

- Enumerate values.

- Have an error handler.

Could you please package it up into one workspace and sent it to me at: header@rocketmail.com

Also, please post it here so everyone can see.
Question by:header
  • 2
LVL 32

Accepted Solution

jhance earned 400 total points
ID: 2417142
I had used my own set of functions for quite some time but I happened across this one:


Since finding it I've used it extensively and it works great.  I'd suggest you take a look at it.

Author Comment

ID: 2442741
I get the following errors while trying to compile the sample program from the site you mentioned.  Can you help me with what this means?

C:\msdn\Registry Class\Registry.cpp(57) : warning C4005: 'TRACE0' : macro redefinition
        C:\msdn\Registry Class\Registry.cpp(54) : see previous definition of 'TRACE0'
C:\msdn\Registry Class\Registry.cpp(58) : warning C4005: 'TRACE1' : macro redefinition
        C:\msdn\Registry Class\Registry.cpp(55) : see previous definition of 'TRACE1'
C:\msdn\Registry Class\Registry.cpp(864) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Error executing cl.exe.

RegTest.exe - 1 error(s), 2 warning(s)
LVL 32

Expert Comment

ID: 2445322
Fix your precompiled header problem.  Delete the *.pch files and/or turn off the pre-compiled header support in VC++

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question