Wipe out all the keys in the "profile" registry

This is a discussion on Wipe out all the keys in the "profile" registry within the Windows Programming forums, part of the Platform Specific Boards category; Hey, I just learned about the CWinApp::WriteProfileString() and ReadProfileString() functions, but now I'm curious how to delete EVERY entry in ...

  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155

    Wipe out all the keys in the "profile" registry

    Hey,

    I just learned about the CWinApp::WriteProfileString() and ReadProfileString() functions, but now I'm curious how to delete EVERY entry in the registry that belongs to the program (which was set by the SetRegistryKey(_T("ProgramName")) function). I need to delete everything because I'm going to rebuild the entire section every time a user saves their information.

    Thanks,

    Guitarist809
    ~guitarist809~

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,854
    If you know the name of the keys the app will have, you could just set them all to a default value when the app starts.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Writing registry keys in windows
    By samus250 in forum C Programming
    Replies: 12
    Last Post: 06-29-2008, 01:43 PM
  2. Registry keys
    By kspen in forum Windows Programming
    Replies: 3
    Last Post: 01-07-2008, 03:01 AM
  3. Registry Keys
    By cgod in forum Windows Programming
    Replies: 3
    Last Post: 11-12-2004, 04:12 AM
  4. Registry Keys in C++
    By Apoc in forum Windows Programming
    Replies: 1
    Last Post: 08-21-2004, 09:46 PM
  5. Recusively delete registry keys
    By SMurf in forum Windows Programming
    Replies: 4
    Last Post: 01-22-2004, 10:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21