News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Modifying the Default entry in the Registry

Started by Robert Collins, December 16, 2005, 05:44:40 PM

Previous topic - Next topic

Robert Collins

The (Default) entry in the registry is set to (value not set). When I modify this entry with some value RegEdit updates the registry with the new value as (Default)         "some value".

However, if I modify this entry through a program using one of the registry API functions the registry is updated but a new (Default) entry is introduced along with my modified entry. So, using RegEdit to see the change I get the following display:

(Default)         (value not set)
(Default)         "some value"
                  .                     
                  .                     
                  .                     
                  .                     

Why does this occur? How can I prevent this from occuring while using my program?


P1

When the key name  is set to null string you get the default entry.  Don't specific a key name like [db "(Default)", 0]

Regards,  P1  :8)

Robert Collins

Quote from: P1 on December 16, 2005, 06:20:23 PM
When the key name  is set to null string you get the default entry.  Don't specific a key name like [db "(Default)", 0]

Regards,  P1  :8)

Thanks, P1. That did the trick