win32
asked on
*INI File
Hi I wanna call a INI file to get some data to my progam.. I can use, GetPrivateProfileInt(..) function, but then I will open the INI file evry time I call the function, for performace resons I can't let that happen.. Can I make a pointer to the "ini_ile", that I can pass into my GetPrivateProfileInt(..) function instead of a file ??
Then I wont have to load the file for evry time I need some settings..
Whow is that done ?
Then I wont have to load the file for evry time I need some settings..
Whow is that done ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>Then I wont have to load the file for evry time I need some settings..
For this I wrote class (TIni), that make this, but it is not 20 pts!
For this I wrote class (TIni), that make this, but it is not 20 pts!
How do you like next variant:
create .xml file and load it only once by DOM or somethink like this. But... this solution won't allow to you to use changed values of ini.
create .xml file and load it only once by DOM or somethink like this. But... this solution won't allow to you to use changed values of ini.
create mdb file (access) and work with it by ADO.
If the ini won't be big, it will be useful.