Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3026

Problem with CFileFind

$
0
0
A fairly simple loop:

Code:

        if (rFinder.FindFile(strFolder + "\\*.*"))
        {
                while (rFinder.FindNextFile())
                {
                        strPath = rFinder.GetFilePath();
.
.
.
.
              }
        }

What on earth would be causing this to only find directories - no files what so ever?

I also noticed that, in another test directory I was using, CFileFind failed to find this sub-directory directory: "HTML Codes - Table of ascii characters and symbols_files". It did find the single HTML file that was also in this directory however.

This class seems to be some what unreliable.

Perhaps I would be better off using the old fashioned C version: findfirst and findnext.

Viewing all articles
Browse latest Browse all 3026

Trending Articles