Главная страница
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.015 c
9-89089
x_michael
2003-04-22 02:06
2003.10.27
DXSpriteEngine и прозрачность входящих туда Sprites


3-89162
Игоряныч
2003-10-07 08:17
2003.10.27
MS SQL Server и ADO в делфи ???


4-89645
Bes
2003-08-21 07:12
2003.10.27
фокус на Tedit...


14-89472
ZeroDivide
2003-10-06 11:22
2003.10.27
Закапывать или кремировать?


1-89236
ilka
2003-10-14 22:38
2003.10.27
Сервисы.