Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does something like DeletePrivateProfileString() exist?

Status
Not open for further replies.

bluecrush

Programmer
Mar 26, 2004
61
US
I am using WritePrivateProfileString() and GetPrivateProfileString() to access MyApp.ini and was wondering if there was a simple method for deleting keys. I am working in a network environment where apps I build don't necessary have write access to the registry so am essentially stuck with *.ini files! Any ideas?
 
WriteProfileSection() can be used to delete keys. It looks like whatever keys you pass to this function get written to the section, and whatever keys are not specified are deleted.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top