Hi,
i am porting my applicaiton from vs6.0 to vs2005
i am getting problem enum ,it is not getting integral value
Could somebody help in fixing this issue,
thanks in advance
enum Keys
{
classesRoot = HKEY_CLASSES_ROOT,
currentUser = HKEY_CURRENT_USER,
localMachine = HKEY_LOCAL_MACHINE,
currentConfig = HKEY_CURRENT_CONFIG,
users = HKEY_USERS,
performanceData = HKEY_PERFORMANCE_DATA, //Windows NT/2000
dynData = HKEY_DYN_DATA //Windows 95/98
};
these lines are from winreg.h
#define HKEY_CLASSES_ROOT (( HKEY ) (ULONG_PTR)((long)0x80000000) )
#define HKEY_CURRENT_USER (( HKEY ) (ULONG_PTR)((long)0x80000001) )
#define HKEY_LOCAL_MACHINE (( HKEY ) (ULONG_PTR)((long)0x80000002) )
#define HKEY_USERS (( HKEY ) (ULONG_PTR)((long)0x80000003) )
#define HKEY_PERFORMANCE_DATA (( HKEY ) (ULONG_PTR)((long)0x80000004) )
#define HKEY_PERFORMANCE_TEXT (( HKEY ) (ULONG_PTR)((long)0x80000050) )
#define HKEY_PERFORMANCE_NLSTEXT (( HKEY ) (ULONG_PTR)((long)0x80000060) )
#if(WINVER >= 0x0400)
#define HKEY_CURRENT_CONFIG (( HKEY ) (ULONG_PTR)((long)0x80000005) )
#define HKEY_DYN_DATA (( HKEY ) (ULONG_PTR)((long)0x80000006) )