Re: Trying to use *.ini file as a database record
- From: erewhon@xxxxxxxxxx (J French)
- Date: Fri, 8 Jul 2005 09:08:39 +0000 (UTC)
On Thu, 7 Jul 2005 10:17:30 -0400, "RAD Software"
<rad@xxxxxxxxxxxxxxx> wrote:
>I'm experimenting with using the
>
>GetPrivateProfileString and WritePrivateProfileString APIs
>
>as a way of creating and manipulating a database file.
>
>One of the first things I need to be able to do at program startup is get a
>list of the section names in the *.ini file.
<snip>
>So, using a 2.3mb *.ini file containing 8,181 section names, with about 10
>keynames in each section, I tried
Provided your INI file is not planned to grow too much, then you've
found an interesting way of skinning the cat.
Personally I intensely dislike the GetPrivateProfileString and
WritePrivateProfileString APIs
If you run FileMon and watch disk activity you'll get a fair idea of
one of the reasons why I loathe them.
Writing your own INI Class is quite easy, failing that you can look
around for one that someone has posted ( I've put one up before )
The advantage is that /you/ then have total control and can enhance it
to make it do exactly what you want, rather than jump through hoops.
It's worth thinking about
.
- Follow-Ups:
- Re: Trying to use *.ini file as a database record
- From: RAD Software
- Re: Trying to use *.ini file as a database record
- References:
- Trying to use *.ini file as a database record
- From: RAD Software
- Trying to use *.ini file as a database record
- Prev by Date: Re: XP VB6 Print problem
- Next by Date: LDAP Querying
- Previous by thread: Re: Trying to use *.ini file as a database record
- Next by thread: Re: Trying to use *.ini file as a database record
- Index(es):
Relevant Pages
|