Re: TInifile.ReadSection does not read values
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sat, 25 Mar 2006 08:44:29 GMT
On Fri, 24 Mar 2006 13:11:02 +0100, "Shiva" <lunatic@xxxxxxxxxxx>
wrote:
Thanks, I found out that TInifile.ReadSection calls the WinAPI
GetPrivateProfileString(). This API has a parameter called FFilename filled
with 'jaeger2koptor.ini'. This wasn't enough: I had to specify the entire
path to make sure that GetPrivateProfileString() would return 'true'.
So after I changing the constant 'inif' to
This might not seem constructive but it is meant to be.
I really like INI files, but I'm very suspicious of the
GetPrivateProfileString() etc APIs
Consequently I wrote my own INI Class that operates on the file
directly
- the advantage is that I can control exactly how it behaves
.
- References:
- TInifile.ReadSection does not read values
- From: Shiva
- Re: TInifile.ReadSection does not read values
- From: Maarten Wiltink
- Re: TInifile.ReadSection does not read values
- From: Shiva
- TInifile.ReadSection does not read values
- Prev by Date: Re: Place mouse on the middle of a button
- Next by Date: Re: Place mouse on the middle of a button
- Previous by thread: Re: TInifile.ReadSection does not read values
- Next by thread: Re: TInifile.ReadSection does not read values
- Index(es):