For network operation procedures can collapse
I don't know why? Permission problems? I am an administrator to run, also not line
CodePudding user response:
Read the registry code:RegistryKey ^ keyroot=Registry: : LocalMachine;
RegistryKey ^ key;
String ^ keystr="Software \ \ Microsoft \ \ Windows \ \ CurrentVersion \ \ Run";
Key=keyroot - & gt; OpenSubKey (keystr, true);
If (key==nullptr) {
Key=key - & gt; CreateSubKey (keystr);
Key=key - & gt; OpenSubKey (keystr, true);
}
String=^ s key - & gt; GetValue (PNAME) - & gt; The ToString ();
The key - & gt; Close ();
If (Equals (s, ""))
CheckBox2 - & gt; Checked=false;
The else
CheckBox2 - & gt; Checked=true;
Key=openreg ();
S=key - & gt; GetValue (" check ") - & gt; The ToString ();
If (Equals (s, "true"))
CheckBox1 - & gt; Checked=true;
The else
CheckBox1 - & gt; Checked=false;
TextBox1 - & gt; Text=key - & gt; GetValue (" domain ") - & gt; The ToString ();
TextBox2 - & gt; Text=key - & gt; GetValue (" PWD ") - & gt; The ToString ();
Md5f=true;
The key - & gt; Close ();
CodePudding user response:
Resolved FFFFFFFFFFFFFFFFCodePudding user response:
Have permission first, and the rest of debugged,