Re: FindFirstFile

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



>I write a code to see files and subdirectories of a directory.
>
>But if a directory has no subdirectory or any file, findClose does not
>release directory handle. So I cannot remove that directories.

You've presented a lot of code, most of which is superfluous to the
nature of your problem.

Can you post a minimal example that illustrates just what the problem
is - it's hard to see the wood for the trees in your current example.

>From what you mention, are you using a pocket PC device emulator? Does
the same problem exist for a Win32 application run on your desktop?

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.



Relevant Pages

  • Re: enumerating file on a directory
    ... Look For CFileFind Class if working in MFC or FindFirstFile FindNextFile or ... FindClose if you project based on Win32 ... Alok Gupta ...
    (microsoft.public.vc.mfc)
  • FindFirstFile
    ... I write a code to see files and subdirectories of a directory. ... But if a directory has no subdirectory or any file, findClose does not ... INVALID_HANDLE_VALUE It has lock over directory that I want to list. ... I work with platform builder and x86 emulator. ...
    (microsoft.public.vc.language)
  • findfirstfile and directory lock problem
    ... I write a code to see files and subdirectories of a directory. ... But if a directory has no subdirectory or any file, findClose does not ... INVALID_HANDLE_VALUE It has lock over directory that I want to list. ... I work with platform builder and x86 emulator. ...
    (microsoft.public.windowsce.app.development)
  • Re: Firefox "Save As" Dialog ?
    ... On Mon, 2005-17-01 at 19:18 -0800, Dave wrote: ... > just subdirectories ... If saving an html file, only html files will be shown. ... like a directory tree ...
    (Fedora)
  • Re: Deleting Log Files...?
    ... Dave, you say not to delete the $hf_mig$ directory, but is it OK to clean out ... all of its subdirectories? ... Right now it's only eating up about 140MB, ...
    (microsoft.public.windowsxp.perform_maintain)