to 张剑波:
这种方法我已经用了,而且重起机器也不能使用!
下面是我的程序,能不能给我指出是哪里出了问题呢?
var
register_temp:tregistry;
begin
register_temp:=tregistry.create;
with register_temp do
begin
rootkey:=HKEY_LOCAL_MACHINE;
if openkey('software/borland/database engine',true) then
begin
writestring('DLLPATH',extractfilepath(paramstr(0)));
writestring('CONFIGFILE01',extractfilepath(paramstr(0))+'IDAPI32.CFG');
writestring('RESOURCE','0009');
writestring('saveconfig','win32');
writestring('usecount','1');
end;
closekey;
IF openkey('software/borland/blw32',true) then
begin
writestring('BLAPIPATH',extractfilepath(paramstr(0)));
writestring('LOCALE_BIB2',extractfilepath(paramstr(0))+'FAREAST.BLL');
writestring('LOCALE_BIB1',extractfilepath(paramstr(0))+'USA.BLL');
end;
CLOSEKEY;
free;
end;
end;