Re: Using the registry
- From: "Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 15:38:15 +0200
"J French" <erewhon@xxxxxxxxxx> wrote in message
news:4295b90d.13132139@xxxxxxxxxxxxxxxxxxx
<using a .ini file>
> Smart move
<using the Registry>
> Not so smart move
That is your *opinion*.
> - it makes your App hard to backup and restore
> - /when/ the Registry goes down - your App is hosed
> - RegMon is a very easy to use tool
I've never had the Registry implode on me. FileMon is just as
easy to use as RegMon, and in fact your first argument is the
only one I would consider valid. But not very pressing. And
keeping the settings with the binaries requires write access
to the directory, which is a bad idea _and_ on its way out.
The Registry has the advantage that HKLM is pre-mounted if you
want to store settings on a per-user basis. The programmer can
use the same path every time and things just work.
The Registry also has the advantage of being hierarchical. I find
this suits me well. One of my favourite tricks is to store the
screen layout in a key hierarchy that mirrors the Parent structure
of the controls starting at the form. .Ini files are flat.
> Personally I would 'lock' the INI file with a CRC32
>
> It drives people nuts being able to see the options in the INI file,
> but also see a ruddy great warning saying :
>
> EnterprizeUser=False
> ; WARNING machine generated file - DO NOT EDIT
> LockCRC: 97649897546
>
> A really adept cracker will simply frig your code, but this simple INI
> file 'lock' will provide the less adept with hours of good clean
> frustration.
This technique is not limited to files.
Groetjes,
Maarten Wiltink
.
- Follow-Ups:
- Re: Using the registry
- From: Maarten Wiltink
- Re: Using the registry
- References:
- Using the registry
- From: Jan
- Re: Using the registry
- From: J French
- Using the registry
- Prev by Date: Re: Using the registry
- Next by Date: Re: Using the registry
- Previous by thread: Re: Using the registry
- Next by thread: Re: Using the registry
- Index(es):
Relevant Pages
|
|