Registry HELP
-
I just started C++ not more than a few days ago, and I'm familiar with the input, output, and string functions. I want to learn how to work with the registry through a C++ application, and I've looked everywhere on the Internet for a simple explanation! -- But, no luck. :confused: All I can find are these complicated guides that "assume" the reader already knows a ton about working with the registry in C++. This is what I want to learn how to do: 1) Write a key (and it's value) to the registry 2) Read the value of a key in the registry 3) Change the value of a key in the registry If any of you can please write a step-by-step [beginner's] guide to using the registry, or if you already know of one available on the Internet, your help would be GREATLY appreciated. Thanks.
-
I just started C++ not more than a few days ago, and I'm familiar with the input, output, and string functions. I want to learn how to work with the registry through a C++ application, and I've looked everywhere on the Internet for a simple explanation! -- But, no luck. :confused: All I can find are these complicated guides that "assume" the reader already knows a ton about working with the registry in C++. This is what I want to learn how to do: 1) Write a key (and it's value) to the registry 2) Read the value of a key in the registry 3) Change the value of a key in the registry If any of you can please write a step-by-step [beginner's] guide to using the registry, or if you already know of one available on the Internet, your help would be GREATLY appreciated. Thanks.
One solution is via Win32 API. Here is a good referenc efor registry API. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry\_functions.asp Kuphryn
-
I just started C++ not more than a few days ago, and I'm familiar with the input, output, and string functions. I want to learn how to work with the registry through a C++ application, and I've looked everywhere on the Internet for a simple explanation! -- But, no luck. :confused: All I can find are these complicated guides that "assume" the reader already knows a ton about working with the registry in C++. This is what I want to learn how to do: 1) Write a key (and it's value) to the registry 2) Read the value of a key in the registry 3) Change the value of a key in the registry If any of you can please write a step-by-step [beginner's] guide to using the registry, or if you already know of one available on the Internet, your help would be GREATLY appreciated. Thanks.
(1)(3)RegSetValueEx (2)RegQueryValueEx see other functions in msdn: RegCloseKey RegConnectRegistry RegCreateKey RegCreateKeyEx RegDeleteKey RegDeleteValue RegEnumKey RegEnumKeyEx RegEnumValue RegFlushKey RegGetKeySecurity RegLoadKey RegNotifyChangeKeyValue RegOpenKey RegOpenKeyEx RegQueryInfoKey RegQueryMultipleValues RegQueryValue RegQueryValueEx RegReplaceKey RegRestoreKey RegSaveKey RegSetKeySecurity RegSetValue RegSetValueEx RegUnLoadKey