Tienes que agregar
IniFiles no
TIniFile. La diferencia es que IniFiles es la unit (básicamente el archivo) que contiene la clase TIniFile.
Código Delphi
[-]
uses
IniFiles;
procedure TForm1.FormCreate(Sender: TObject);
begin
with TIniFile.Create('MiIni.ini') do
try
if ReadInteger('General', 'Value', 0) = 0 then
ShowMessage('Ok!');
finally
Free;
end;
end;
Saludos!