string InstallPath = (string)Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Bohemia Interactive Studio\ArmA 2 OA", "Key", null);
if (InstallPath != null)
{
label1.Text = InstallPath;
}
else
{
label1.Text = "Missing.";
}
return;
Program starts, pressing button and CRASH.. Error is: Unable to cast object of type 'System.Byte[]' to type 'System.String'.
I don't know what im doing wrong.. I searched whole internet, and i can't find answer :S

New Topic/Question
Reply



MultiQuote




|