CFileFind::FindNextFile

Call this member function to continue a file search from a previous call to FindFile.

virtual BOOL FindNextFile( );

Nonzero if there are more files; zero if the file found is the last one in the directory or if an error occurred. To get extended error information, call the Win32 function GetLastError. If the file found is the last file in the directory, or if no matching files can be found, the GetLastError function returns ERROR_NO_MORE_FILES.

You must call FindNextFile at least once before calling any of the following attribute member functions:

FindNextFile wraps the Win32 function FindNextFile.

Header: afx.h

Show: