Win32,i write the RegCreateKeyEx() function like this, it's working
HKEY hkey;
DWORD dwDisposition=0;
RegCreateKeyEx(HKEY_CLASSES_ROOT,"NewApp",0,"",REG _OPTION_VOLATILE,KEY_ALL_ACCESS,NULL,
&hkey,&dwDisposition);
MFC, i write the RegCreateKeyEx() function like below, no error but just can't create a key in registry, why?
HKEY hkey;
DWORD dwDisposition=0;
::RegCreateKeyEx(HKEY_CLASSES_ROOT,"NewApp",0,"",R EG_OPTION_VOLATILE,KEY_ALL_ACCESS,NULL,
&hkey,&dwDisposition);
in addtion, what is the different beyween these two statement in MFC
RegCreateKeyEx(...);
::RegCreateKeyEx(...);