Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.10.27;
Скачать: CL | DM;

Вниз

TRegistryIniFile & TRegistry   Найти похожие ветки 

 
ilka ©   (2003-10-16 20:31) [0]

Здраствуйте. Проблема такова:
надо переопределить у TRegistryIniFile ветвь по умолчанию с HKEY_CURRENT_USER на HKEY_USERS.


 
Anatoly Podgoretsky ©   (2003-10-16 20:38) [1]

Нельзя, TRegistryIniFile только для этого раздела, это эмуляция роботы ИНИ файлов.

TRegistryIniFile presents a simple interface to the system registry and hides the need to know about the underlying structure of the registry. TRegistryIniFile enables handling the Windows system registry as if it were a Windows 3.x INI file.
...
Note: Information contained in existing users’ INI files is not migrated into the system registry using the method described above. A one-time operation to explicitly copy the INI file data, through TRegistryIniFile, must be used to do this.


 
ilka ©   (2003-10-16 20:47) [2]

вообщем расширим проблемку написал класс для работы с реестром
сервис который использует TRegistryIniFile пишет данные в HKEY_USERS а обычное Application в HKEY_CURRENT_USER. поэтомы мне и нужно переопределение
пропертю я нащел
TRegistryIniFile.RegIniFile.RootKey:=HKEY_CURRENT_USER;
но он "гад" пишет что
[Error] uSettings.pas(238): Undeclared identifier: "HKEY_CURRENT_USER"

вот может кто знает где константа определена?


 
Германн ©   (2003-10-17 03:47) [3]

2 ilka ©
А все-таки стоит подумать - нужно ли тебе использовать примочку к реестру? Если нужен ini-файл - работай с TIniFile, если нужен реестр - работай с TRegisrty.



Страницы: 1 вся ветка

Текущий архив: 2003.10.27;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.027 c
14-89524
ИМХО
2003-10-08 15:05
2003.10.27
Hotmail.com


3-89131
Водопад
2003-10-07 20:41
2003.10.27
Базы данных


1-89354
TUser
2003-10-16 09:26
2003.10.27
ToolWindow


14-89551
Brahman
2003-10-08 08:47
2003.10.27
Повеселитесь славяне:)


7-89625
Checist [root]
2003-08-16 03:04
2003.10.27
Temporary Internet Files - беда