I find that when using Debug build, we do not need to set linker --> input --> Advapi32.lib, but when using Release build, we need to set linker --> input --> Advapi32.lib. Or else, there will be error message, unresolved symbol RegSetValueEx.
I am using Visual Studio 2005.
thanks in advance,
Maybe whatever IDE you're using automatically links with it when compiling in debug mode.
If you're asking why, I guess its because they wanted to automatically put libraries in Debug mode, for ease of use. But for Release mode, doing that would bloat the program too much.