Thread: get registry value

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    5

    get registry value

    right - I have the directory to my ogre app stored in

    HKEY_CURRENT_USER/ Software/myAppName

    how do I make my app read it? I've tried searching the RegGetValue but couldn't get it to work/ understand how it works.

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    What does your code look like currently?
    First you need to call RegOpenKeyEx() then RegGetValue() and RegCloseKey() when you're done.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    5
    thank you it works!

  4. #4
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Why is this not posted on the Windows board?

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Good question. Moved.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Registry, Regedit
    By franse in forum C++ Programming
    Replies: 21
    Last Post: 01-29-2009, 09:57 AM
  2. Registry HowTo
    By xxxrugby in forum C Programming
    Replies: 2
    Last Post: 04-10-2005, 10:44 AM
  3. Registry
    By gvector1 in forum C# Programming
    Replies: 0
    Last Post: 07-30-2003, 04:02 PM
  4. LOGFONT struct & Registry :: MFC
    By kuphryn in forum Windows Programming
    Replies: 3
    Last Post: 05-27-2002, 03:38 PM
  5. Registry Access
    By ExDigit in forum Windows Programming
    Replies: 3
    Last Post: 01-04-2002, 04:02 AM