CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 1999
    Posts
    24

    Overwriting instead of editing the registry

    I try to overwrite a (Default) key in the registry but instead I add a key with the same name (so now I have two keys with the name (Default) wich is not what I want)

    I do it like this:

    SaveSettingString HKEY_CLASSES_ROOT, "blahbal", "(Default)", "blahblah"

    Maybe "(Default)" is wrong and there is a special Const or something ?

    thanx


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Overwriting instead of editing the registry

    The Default Value of a Key is specified by "", eg.

    SaveSettingString HKEY_CLASSES_ROOT, "blahbal", "", "blahblah"

    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Overwriting instead of editing the registry

    where do you guys get the SaveSettingString from? I couldn't find a reference to that anywhere in the documentation.


  4. #4
    Join Date
    Sep 1999
    Posts
    24

    Re: Overwriting instead of editing the registry

    I found it on the net somewhere...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured