heres a function that I'm trying to write. I call the function with a line like this..
AddRegE("HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\MediaResources\\AudioDSP24"
int AddRegE (char strKey[512])
{
CRegKey MyRegFix;
MyRegFix.SetKeyValue(strKey,"1","ValueCard"
return 0;
};
Why doesm't this change the key's value in my registry ? the program compiles and runs fine. Sorry if this is really simple but I have just started learning c++ , any help would be appreciated. I have a feeling it may have somthing to do with HKEY but I have no idea how to create a handle or why I need to.
Thanks Heaps,
Matt
AddRegE("HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\MediaResources\\AudioDSP24"
int AddRegE (char strKey[512])
{
CRegKey MyRegFix;
MyRegFix.SetKeyValue(strKey,"1","ValueCard"
return 0;
};
Why doesm't this change the key's value in my registry ? the program compiles and runs fine. Sorry if this is really simple but I have just started learning c++ , any help would be appreciated. I have a feeling it may have somthing to do with HKEY but I have no idea how to create a handle or why I need to.
Thanks Heaps,
Matt