Re: TInifile.ReadSection does not read values



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
.


Quantcast