嗨,在第二行尝试从对象转换为字符串数组时,它显示编译时错误为
'System::String ^' : 本机数组不能包含此托管类型
'initializing' : 无法从 'System::String ^' 转换为 'System::String ^[]'
代码:
RegistryKey ^rk = Registry::LocalMachine->OpenSubKey("SOFTWARE\\Microsoft\\Microsoft SQLServer");
String ^instances[] = (String^)rk->GetValue("InstalledInstances");
如何解决这个问题....提前致谢。