Break free of the limitations of the MFC app->WriteProfileString()
programming style. With this little class you can easily access any .INI file
on your hard-drive.
Interface
Name | Description | |
---|---|---|
![]() | SetIniFilename | Sets the current Ini-file to use. |
![]() | GetInt | Reads an integer from the ini-file. |
![]() | GetBoolean | Reads a boolean value from the ini-file. |
![]() | GetString | Reads a string from the ini-file. |
![]() | GetBinary | Reads a binaryt lump of data from the ini-file. |
![]() | WriteInt | Writes an integer to the ini-file. |
![]() | WriteBoolean | Writes a boolean value to the ini-file. |
![]() | WriteString | Writes a string to the ini-file. |
![]() | WriteBinary | Writes a binary lump of data to the ini-file. |
![]() | WriteExpandString | Writes an 'expand string' to the ini-file. |
![]() | DeleteKey | Removes an item from the current ini-file. |
![]() | DeleteSection | Removes a complete section from the ini-file. |
Notes
Yes, I could have made one
Write()
function with a bunch
of argument overloads, but that's not possible for the Get()
function (it returns data) and I wanted to make it consistent.Source Code Dependencies
Microsoft MFC LibraryMy Global MFC functions
See Also
Registry classDownload Files
![]() | Source Code (3 Kb) |