Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Registry HELP

Registry HELP

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialc++windows-adminhelplearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yoshi11
    wrote on last edited by
    #1

    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.

    V O 2 Replies Last reply
    0
    • Y yoshi11

      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.

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • Y yoshi11

        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.

        O Offline
        O Offline
        olinn
        wrote on last edited by
        #3

        (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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups