DWORD dwType = REG_SZ;
HKEY hKey = 0;
String^ value;
DWORD value_length = 1024;
RegOpenKey(HKEY_CURRENT_USER, _T("Software\\Valve\\Steam"), &hKey);
RegQueryValueEx(hKey, _T("Language"), NULL, &dwType, (LPBYTE)&value, &value_length);
下午好,问题是,为什么这段代码不行,敲出错误?请帮忙。如果是这样,则需要返回值String^
稍微调整一下您的解决方案。像这样尝试