G
Guest
Hi all,
in my service i added my Registry Programming code,am facing with a problem
which am not able to rectify it..the problem is , in the service, the program
gets hanged and doesnt move after Registry is accessed..that is before
registry code,everything works and once u access regitry it doesnt!......even
Messagebox isnot working!..
the code is as follows,
/**************************Code starts here*******************/
RegistryKey
pRegKey=Registry.LocalMachine.OpenSubKey("Software\\Software\\MyKey");
pRegKey->SetValue("VAL","1");
pRegKey.Close();
pRegKey=Registry.LocalMachine.OpenSubKey("Software\\Software\\MyKey");
object result=pRegKey->GetValue("VAL");
MessageBox.Show(result.ToString());
pRegKey.Close();
/**************************Code starts here*******************/
i would be happy if someone could help me out..
thanks in advance...
with regards,
C.C.Chakkaradeep
in my service i added my Registry Programming code,am facing with a problem
which am not able to rectify it..the problem is , in the service, the program
gets hanged and doesnt move after Registry is accessed..that is before
registry code,everything works and once u access regitry it doesnt!......even
Messagebox isnot working!..
the code is as follows,
/**************************Code starts here*******************/
RegistryKey
pRegKey=Registry.LocalMachine.OpenSubKey("Software\\Software\\MyKey");
pRegKey->SetValue("VAL","1");
pRegKey.Close();
pRegKey=Registry.LocalMachine.OpenSubKey("Software\\Software\\MyKey");
object result=pRegKey->GetValue("VAL");
MessageBox.Show(result.ToString());
pRegKey.Close();
/**************************Code starts here*******************/
i would be happy if someone could help me out..
thanks in advance...
with regards,
C.C.Chakkaradeep