예제

 


int Dialog::GetDirFileNum(CString FolderPath)
{
    int count = 0;
    CFileFind finder;

    BOOL bworking = finder.FindFile(FolderPath + "/*.*");

    while (bworking)
    {
        bworking = finder.FindNextFile();
        if (finder.IsDots())
        {
            continue;
        }
        count++;
    }
    finder.Close();
    return count;
}

+ Recent posts