Archived

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

huffer59

Delete a file with win32 sdk

Recommended Posts

huffer59    122
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   
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