c++ 操作注册表如果遇到名称为"(默认)"的处理方法:用""(空串)来处理即可
例如:
if (!CRegistry::RegGetCharKeyValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Classes\\Applications\\WinRAR.exe\\shell\\open\\command","",strRarPath))
{
CLog::WriteLog2("获取Winrar安装路径 失败!");
return -1;
}
c++ 操作注册表如果遇到名称为"(默认)"的处理方法:用""(空串)来处理即可
例如:
if (!CRegistry::RegGetCharKeyValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Classes\\Applications\\WinRAR.exe\\shell\\open\\command","",strRarPath))
{
CLog::WriteLog2("获取Winrar安装路径 失败!");
return -1;
}