We first in the new project, right click Select "Add" and select "Class", add a class, named Operini.
We introduce the WINDOWSAPI function in the class, GetPrivateProfileString and writeprivateprofilestring These two functions can read and write to the INI file.
After introducing the above two functions, we can define the methods of reading, writing, deleting keys, and deleting values.
4 through the above steps, the operation of the INI file class has been defined, now we are in the form of key events to add code. Through breakpoint debugging, we can clearly see the content of the INI file write, and delete the value, delete the complete operation of the key.