Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

CFileInfoArray: A class for gathering file information recursively through directories

, 23 Nov 1999
This class gathers file information recursively by directory and, as a bonus track, it also calculates the 32bit file-checksum and CRC
fileinfo_demo.zip
res
FCompare.ico
FCompare.clw
FCompare.dsp
FCompare.dsw
fileinfo_exe.zip
FCompare.exe
fileinfo_src.zip
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Spanish (Modern) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESN)
#ifdef _WIN32
LANGUAGE LANG_SPANISH, SUBLANG_SPANISH_MODERN
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE DISCARDABLE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 10, 3\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\FCompare.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""l.esp\\afxres.rc""          // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON    DISCARDABLE     "res\\FCompare.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOG DISCARDABLE  0, 0, 187, 90
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "About FCompare"
FONT 8, "MS Sans Serif"
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,5,10,20,20
    LTEXT           "FCompare Version 1.1",IDC_STATIC,40,10,75,8,SS_NOPREFIX
    LTEXT           "Copyright (C) 1999 Codeguru && friends",IDC_STATIC,40,
                    25,119,8
    LTEXT           "Coded by Antonio Tejada Lacaci",IDC_STATIC,40,35,105,8
    LTEXT           "http://www.codeguru.com",URL_CODEGURU,55,45,90,8,
                    WS_TABSTOP
    LTEXT           "http://www.espanet.com/atejada",URL_HOMEPAGE,55,55,110,
                    8,WS_TABSTOP
    DEFPUSHBUTTON   "OK",IDOK,70,70,50,14,WS_GROUP
END

DLG_FCOMPARE DIALOG DISCARDABLE  0, 0, 382, 270
STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Binary File Compare"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Director&y",LBL_DIRECTORY,5,12,29,8
    EDITTEXT        EDT_DIRECTORY,45,10,235,12,ES_AUTOHSCROLL | WS_GROUP
    PUSHBUTTON      "...",BTN_EXPLOREDIR,285,10,10,12
    LTEXT           "File mas&ks",LBL_MASKS,5,27,35,8
    EDITTEXT        EDT_ALLOWEDMASKS,45,25,100,12,ES_AUTOHSCROLL | WS_GROUP
    CONTROL         "&Recurse directories",CHK_RECURSEDIR,"Button",
                    BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,155,27,75,10
    PUSHBUTTON      "Add to &source",BTN_ADDSOURCEFILES,5,45,50,14
    PUSHBUTTON      "&Clear source",BTN_CLEARSOURCEFILES,65,45,50,14
    PUSHBUTTON      "Add to &target",BTN_ADDTARGETFILES,125,45,50,14
    PUSHBUTTON      "C&lear target",BTN_CLEARTARGETFILES,185,45,50,14
    PUSHBUTTON      "E&xit",BTN_EXIT,245,25,50,14
    GROUPBOX        "Match criteria",GRP_MATCHCRITERIA,305,5,70,65
    CONTROL         "Size",RAD_MATCHCRITERIA,"Button",BS_AUTORADIOBUTTON | 
                    WS_GROUP | WS_TABSTOP,310,15,29,10
    CONTROL         "Checksum",RAD_MATCHCHECKSUM,"Button",BS_AUTORADIOBUTTON,
                    310,25,50,10
    CONTROL         "CRC",RAD_MATCHCRC,"Button",BS_AUTORADIOBUTTON,310,35,31,
                    10
    CONTROL         "Contents",RAD_MATCHCONTENTS,"Button",BS_AUTORADIOBUTTON,
                    310,45,44,10
    LTEXT           "UpTo",LBL_UPTO,310,55,19,8
    EDITTEXT        EDT_UPTO,330,55,35,10,ES_AUTOHSCROLL | WS_DISABLED
    LTEXT           "Source files (nnnnnn)",LBL_SOURCEFILES,10,80,68,8
    CONTROL         "List1",LST_SOURCEFILES,"SysListView32",LVS_REPORT | 
                    WS_BORDER | WS_TABSTOP,10,90,365,60
    LTEXT           "Target files (nnnnnn)",LBL_TARGETFILES,10,150,66,8
    CONTROL         "List1",LST_TARGETFILES,"SysListView32",LVS_REPORT | 
                    WS_BORDER | WS_TABSTOP,10,160,365,60
    CONTROL         "Compare &duplicates",CHK_COMPAREDUPLICATES,"Button",
                    BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,245,227,78,10
    DEFPUSHBUTTON   "Co&mpare",BTN_COMPARE,325,225,50,14
    CONTROL         "List1",LST_MATCHEDFILES,"SysListView32",LVS_REPORT | 
                    WS_BORDER | WS_TABSTOP,10,90,365,150
    CONTROL         "Tab1",TAB_ACTION,"SysTabControl32",0x0,5,65,375,180
    LTEXT           "Matched files (nnnnnn)",LBL_MATCHEDFILES,10,80,73,8
    CONTROL         "Progress1",PRG_PROGRESS,"msctls_progress32",PBS_SMOOTH,
                    0,260,380,10
    LTEXT           "Ready",LBL_STATUS,0,250,380,10
    PUSHBUTTON      "&Export...",BTN_EXPORT,245,45,50,14
END


#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "0C0A04B0"
        BEGIN
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "Aplicaci�n MFC FCompare\0"
            VALUE "FileVersion", "1, 0, 0, 1\0"
            VALUE "InternalName", "FCompare\0"
            VALUE "LegalCopyright", "Copyright (C) 1999\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "FCompare.EXE\0"
            VALUE "ProductName", "Aplicaci�n FCompare\0"
            VALUE "ProductVersion", "1, 0, 0, 1\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0xc0a, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 180
        TOPMARGIN, 7
        BOTTOMMARGIN, 83
    END

    DLG_FCOMPARE, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 375
        TOPMARGIN, 7
        BOTTOMMARGIN, 263
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_ABOUTBOX            "&About FCompare..."
END

#endif    // Spanish (Modern) resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ESP)
#ifdef _WIN32
LANGUAGE 10, 3
#pragma code_page(1252)
#endif //_WIN32
#include "res\FCompare.rc2"  // non-Microsoft Visual C++ edited resources
#include "l.esp\afxres.rc"          // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141223.1 | Last Updated 24 Nov 1999
Article Copyright 1999 by Antonio Tejada Lacaci
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid