Показать сообщение отдельно

  #3  
Старый 21.12.2009, 04:04
PandoraBox
Постоянный
Регистрация: 06.05.2007
Сообщений: 393
Провел на форуме:
1510937

Репутация: 398
По умолчанию

Код:
#include <inifile.h> // TIniFile
#include <AnsiStrings.hpp> // ChangeFileExt();

TIniFile *Ini = new TIniFile ( ChangeFileExt(Application->ExeName, ".ini") );
unsigned int count;
count = Ini->ReadInteger("Options", "Level", 0);
Ini->WriteInteger("Options", "Level", count++);
FreeAndNil(Ini); // Unload and clear

Последний раз редактировалось PandoraBox; 21.12.2009 в 04:10..
 
Ответить с цитированием