By b.kragl on
8/13/2009 7:09 AM
Yesterday, it took me quite some time to find out, why a program couldn't access a registry value, since exactly the same code worked in a test program.
The problem was, that I'm running a x64 system and the program, for some reason, has platform target x86. After finding out, that there is regedit.exe (for the "x64 registry) and regedt.32.exe (for the "x86 registry") and adding the value also to the x86 registry, everythin worked fine.
So be careful with your target platform setting when accessing the windows registry!