Cześć @LL
Przedstawiam poniżej fragment kodu procedury oraz błąd, który wyskakuje, kdy ten kod wykonuję. Kompilator Delphi 6 NIE MA ZASTRZEŻEŃ do tego kodu!
begin
Reg.RootKey:= HKEY_CURRENT_USER;
Reg.OpenKey('Software\Microsoft\Windows\CurrentVersion\Run', True);
if CheckBox2.Checked = True then
Reg.WriteString('XXX', Application.ExeName) else
Reg.DeleteKey('XXX');
end;
begin
Reg.RootKey:= HKEY_LOCAL_MACHINE;
Reg.OpenKey('Software\Os_Naszy\Naszy Antywirus', True);
if CheckBox1.Checked = True then
Reg.WriteString('AAA', 'True') else
Reg.WriteString('AAA', 'False');
end;
Błąd:
"Failed to set data for "AAA"."
lub
"Failed to set data for "XXX"."
Co robię źle?
(PS. Mam windowsa 2000 pro)--Pracuję w Delphi
+---------------------------+
Pozdrawiam
GG: 4079188
[email protected]