View Full Version : little help needed. backing up registry
enhanced08
07-27-2005, 01:15 AM
i want to make a program that can backup a specific registry key and save it as txt or dat file and also be able to take that file and put the data in it back into the reg if needed. i can program C++ a little so thats probably what i'll use to make the program. thanks!
Thebranded
07-27-2005, 02:44 AM
regedit will do all that
just find the line youo want to export, then go to export, and make sure selected branch is selected and give it a name and export. to restore the file just double click it and a prompt will ask you if you want to import it.
enhanced08
07-27-2005, 12:40 PM
but i need a program to do this. like make a C++ program or something. is there anyway i can control rededit with C++?
doctorgonzo
07-27-2005, 12:46 PM
Check this out. It's a wrapper for manipulating the registry in C++: http://www.codeproject.com/system/CPPRegistryWrapper.asp
enhanced08
07-27-2005, 12:52 PM
alright thanks! i'm not very good at C++ so, whats a wrapper?
doctorgonzo
07-27-2005, 12:55 PM
A wrapper is a class that "wraps" a nicer-looking interface around something that's not as nice. You could easily manipulate the registry in C++ using the function calls from Windows DLLs. However, you would have to know how to call those functions, what they return, how to handle errors, etc. A wrapper does all this for you and presents it in a much more user-friendly manner. Think of it as a little programming utility.
enhanced08
07-27-2005, 01:01 PM
ahh... i like the idea! lol, thanks a lot!
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.