Click to See Complete Forum and Search --> : Overwriting instead of editing the registry


inhumanoid
October 20th, 1999, 09:38 AM
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

Aaron Young
October 20th, 1999, 12:59 PM
The Default Value of a Key is specified by "", eg.

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

Aaron Young
Analyst Programmer
adyoung@win.bright.net
aarony@redwingsoftware.com

Lothar Haensler
October 21st, 1999, 01:48 AM
where do you guys get the SaveSettingString from? I couldn't find a reference to that anywhere in the documentation.

inhumanoid
October 21st, 1999, 02:18 AM
I found it on the net somewhere...