Of course, as soon as I posted this I figured it out. I had used a CFileFind object to find and delete all the files in the directory and I forgot to Close it.
I need to delete a directory from within a MFC application. _rmdir(lpstrDir) doesn't seem to work. If I call strerror(errno) to see what the trouble is it returns "Permission Denied". However when I check the permissions on the directory, Everyone has Full Control. I can also...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.