Visual C++/MFC Recursive Invocation 썸네일형 리스트형 MFC Recursive Invocation example 주어진 디렉토리 경로를 받아서 그 안의 모든 파일과 모든 하위 폴더명을 검사하여 메시지박스에 출력하는 예하위 폴더 안에 있는 하위 폴더까지 무한히 반복적으로 모두 검사한다 사용법: Recursive(_T("D:\\test\\*")); BOOL Recursive(LPCTSTR rootPath){ CFileFind finder; // build a string with wildcards CString strWildcard(rootPath); // start working for files BOOL bWorking = finder.FindFile(strWildcard); while (bWorking) { bWorking = finder.FindNextFile(); // skip . and .. files; o.. 더보기 이전 1 다음