Hi in the second line while trying to convert from object to String array it shows compile time error as
'System::String ^' : a native array cannot contain this managed type
'initializing' : cannot convert from 'System::String ^' to 'System::String ^[]'
code:
RegistryKey ^rk = Registry::LocalMachine->OpenSubKey("SOFTWARE\\Microsoft\\Microsoft SQLServer");
String ^instances[] = (String^)rk->GetValue("InstalledInstances");
How to fix this .... Thanks in advance.