logo   

如何用Delphi修改注册表?? Delphi / Windows SDK/API - CSDN社区 community.csdn.net

use ...,registry,...
procedure TForm1.Button1Click(Sender: TObject);
var r:Tregistry;
begin
r := Tregistry.Create;
r.RootKey := HKEY_LOCAL_MACHINE;
r.OpenKey('SOFTWARE\youkey',true);
r.Writestring('youval','11111');
showmessage(r.Readstring('youval'));
r.Free;
end;
Tags:
访问文章出处: http://topic.csdn.net/t/20041124/00/3582196.html(如何用Delphi修改注册表?? Delphi / Windows SDK/API - CSDN社区 community.csdn.net)

上一篇: 给Delphi程序添加版本信息 - linzhisong的专栏 - CSDNBlog
下一篇: 创建窗体列表 - sheshou2的专栏 - CSDNBlog