L
LiGen
Unregistered / Unconfirmed
GUEST, unregistred user!
这段程序为什么在Win2000下报错,而win98正常?
procedure TFTree.FormCreate(Sender: TObject);
var
IniFile:TiniFile;
begin
IniFile:=TIniFile.create(ExtractFilePath(ParamStr(0))+'Brighteye.ini');
//错误从这里开始
Ftree.top:=IniFile.ReadInteger('top','',0);
Ftree.Left:=IniFile.ReadInteger('Left','',0);
Ftree.Width:=IniFile.ReadInteger('Width','',600);
Ftree.Height:=IniFile.ReadInteger('Height','',480);
BackFileDir:=IniFile.ReadString('BackFileDir','',Curdir+'BackFile');
IniFile.Free;
end;
procedure TFTree.FormCreate(Sender: TObject);
var
IniFile:TiniFile;
begin
IniFile:=TIniFile.create(ExtractFilePath(ParamStr(0))+'Brighteye.ini');
//错误从这里开始
Ftree.top:=IniFile.ReadInteger('top','',0);
Ftree.Left:=IniFile.ReadInteger('Left','',0);
Ftree.Width:=IniFile.ReadInteger('Width','',600);
Ftree.Height:=IniFile.ReadInteger('Height','',480);
BackFileDir:=IniFile.ReadString('BackFileDir','',Curdir+'BackFile');
IniFile.Free;
end;