For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > October 2004 > Re: FindFirstFile / FindFirstFileEx: Too slow to search files or









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: FindFirstFile / FindFirstFileEx: Too slow to search files or
Christian ASTOR

2004-10-20, 8:57 pm

JohnL wrote:
> I am using Microsoft Visual C++ 6.0 to develop a dialog-based Win32
> application.
>
> I would like to show all the files and subdirectories of C drive with a Tree
> Control (CTreeCtrl), just like the windows file explorer does. I use
> FindFirstFile to seach the files and subdirectories, and then insert them to
> the tree control. However, I found the process is very time-consuming: it
> takes me more than 30 seconds to finish the whole process. Could anybody
> help me to speed it?


Explorer uses IShellBrowser interface, then IShellFolder, IShellView and
IEnumIDList to enumerate items, only when needed (not all items
recursively !)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com