> c:\documents and settings\XXXXXX\desktop\Listing.cpp(55) : error C2664: 'RegOpenKeyExW' :
> cannot convert parameter 2 from 'const char [45]' to 'LPCWSTR'
I think the new compilers default to UNICODE enabled, which means everything expects wide strings.
#undef UNICODE
right at the start of the code may work, though there's probably better ways of doing it.
To make the problem go away for sure, make use of the TEXT() macro which changes in response to the UNICODE setting, and use TCHAR (check spelling) as the type for all your strings.
> error C2065: 'i' : undeclared identifier
Check your for loops.
In old C++, this was valid
Code:
for ( int i = 0 ; i < 10 ; i++ ) {
}
// in new C++, i is no longer in scope
for ( i = 0 ; i < 10 ; i++ ) {
}