S
skyhorse_zjj
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
var registertemp:tregistry;
begin
registertemp:=tregistry.create;
with registertemp do
begin
rootkey:=hkey_local_machine;
if openkey('software/odbc/odbc.ini/odbc data source',true) then
begin
writestring('pf','sql server');
end;
closekey;
if openkey('software/odbc/odbc.ini/pf',true) then
begin
writestring('database','pfjxc');
writestring('driver','C:/WINDOWS/SYSTEM/SQLSRV32.dll');
writestring('lastuser','sa');
writestring('server','NTSERVER');
end;
closekey;
free;
end;
end;
var registertemp:tregistry;
begin
registertemp:=tregistry.create;
with registertemp do
begin
rootkey:=hkey_local_machine;
if openkey('software/odbc/odbc.ini/odbc data source',true) then
begin
writestring('pf','sql server');
end;
closekey;
if openkey('software/odbc/odbc.ini/pf',true) then
begin
writestring('database','pfjxc');
writestring('driver','C:/WINDOWS/SYSTEM/SQLSRV32.dll');
writestring('lastuser','sa');
writestring('server','NTSERVER');
end;
closekey;
free;
end;
end;