Skip to content

Instantly share code, notes, and snippets.

@nibasya
Created March 21, 2016 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nibasya/28bd83e6f4c0353b3277 to your computer and use it in GitHub Desktop.
Save nibasya/28bd83e6f4c0353b3277 to your computer and use it in GitHub Desktop.
.ini entry not deleted
// Delete section
- WriteProfileString(IntToStr(i), NULL, 0);
+ ret = AfxGetApp()->WriteProfileString(IntToStr(i), NULL, NULL);
+ if (ret == 0) {
+ MessageBox(GetLastErrorString());
+ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment