Description: file gathering through directories and this class allows just that: gather file information recursively by directory and, as a bonus track, it also calculates 32bit file-checksum (note this is not NT s executables checksum calculated with MapFileAndChecksum) and 32bit file-CRC (with a borrowed code, I didn t feel like re-inventing the wheel and the other option was to review my Codification Theory notes and I m a bit alergic to dust).
The second part of this article presents FCompare, a sample application of CFileInfo and CFileInfoArray usage. This application does a:
Recursive search of source and target files to compare, given a directory and a filemask.
Binary comparison of source with target files by their size, partial/total content, partial/total checksum or partial/total CRC.
Feeds a listview with matched filenames and paths.
File list (Check if you may need any files):