Shipping default values in the registry

Recently, someone asked about how their code should work if a certain configuration setting was missing from the registry. The responses were mixed.  One suggested checking the value of RegQueryValue. Another suggested that the missing value should cause the app to fail. The right answer is “it should use the default value.”  “But hark!” you…

0