B
bluehouse
Unregistered / Unconfirmed
GUEST, unregistred user!
begin
Reg:=TRegistry.Create;
Reg.RootKey:=HKEY_LOCAL_MACHINE ;
if reg.openkey('software/microsoft/windows/currentversion/explorer/mycomputer/NameSpace/delegatefolders/{59031a47-3f72-44a7-89c5-5595fe6b30ee}',true)then
if checkbox1:=true then
begin
reg.WriteString('','');
end
else
reg.deletekey('{59031a47-3f72-44a7-89c5-5595fe6b30ee}');
end;
为什么错了?
Reg:=TRegistry.Create;
Reg.RootKey:=HKEY_LOCAL_MACHINE ;
if reg.openkey('software/microsoft/windows/currentversion/explorer/mycomputer/NameSpace/delegatefolders/{59031a47-3f72-44a7-89c5-5595fe6b30ee}',true)then
if checkbox1:=true then
begin
reg.WriteString('','');
end
else
reg.deletekey('{59031a47-3f72-44a7-89c5-5595fe6b30ee}');
end;
为什么错了?