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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

_rmdir: PROBLEM SOLVED!!!

Status
Not open for further replies.

SuperTeone

Programmer
Jun 25, 2001
6
IT
Hi everybody,
I've solved the problem: simply, when you perform a search using MFC functions you have to CLOSE THE SEARCH with

BOOL FindClose(HANDLE hFindFile);

If you don't close the search, the directory could not be removed becouse it continue to be used by a process.

So, for Jerry, add the appropriate closing instruction to my code and it will perfectly (but not optimizally :) work.

Thanks to everybody,

bye.

Teo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top