On Tue, Nov 17, 2009 at 1:51 AM, Vishva <[email protected]> wrote: > 2009/11/17 Vishva <[email protected]> > >> Dear all, >> >> At the moment I'm developing an MFC application using Visual Studio 2005, >> development language is C++. >> >> There is an .ini file where most constant data are saved and retrieved. >> I want to know how to read all the key values under a section from .ini >> file at once.. if there is a way to do that..! >> >> Can I do this using GetPrivateProfileStruct()..?
No. That retrieves a data item that has previously been written with WritePrivateProfileStruct() only. You're after GetPrivateProfileSectionNames() <http://msdn.microsoft.com/en-us/library/ms724352(VS.85).aspx> > Further, number of keys in a section has the possibility of getting > changed.. Then you need to periodically re-read the section, and compare with the last time you did it. -- PJH http://shabbleland.myminicity.com/ http://www.chavgangs.com/register.php?referer=9375 http://www.kongregate.com/?referrer=Shabble
