Introduction - If you have any usage issues, please Google them yourself
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.
Packet : 65520788fileinfo_demo.zip filelist
DirDialog.cpp
DirDialog.h
FCompare.clw
FCompare.cpp
FCompare.dsp
FCompare.dsw
FCompare.h
FCompare.rc
FCompareDlg.cpp
FCompareDlg.h
FileInfo.cpp
FileInfo.h
HyperLink.cpp
hyperlink.h
res/
resource.h
res/FCompare.ico
res/FCompare.rc2
StdAfx.cpp
StdAfx.h