Archived

This topic is now archived and is closed to further replies.

Delete a file with win32 sdk

This topic is 5277 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I there a way to delete a file using C++ and win32 sdk. I am want to be able to allow a user to add pictures to screensaver which I will copy into my screensavers directory and also allow the user to remove pictures from the screensaver, and when they do that I would like to delete the files that they have choosen from my screensavers directory in my case c:\program files\picturescrnsaver\pics

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Check the Win32 platform sdk on msdn...

The DeleteFile function deletes an existing file.

BOOL DeleteFile(
LPCTSTR lpFileName
);

Share this post


Link to post
Share on other sites