高手指教一二!
高手指教一二!请问用DELPHI写入了一个注册表值后要如何读取啊!程序如下,要如何才能够读取CWXGJ里的值啊!谢谢关注!procedure TForm1.Button1Click(Sender: TObject);
var
reg:Tregistry;
Begin
reg:=TRegistry.Create;
with myReg do
begin
RootKey:=HKEY_LOCAL_MACHINE;
OpenKey('Software\cwxgj',True);
WriteString('reg','reg');
CloseKey;
free;
end;
end; 对 Delphi 不熟,不过既然有"WriteString",就应有"ReadString"啊,有读就有写吧,建议去百度查一下.
页:
[1]