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

Project Line Counter Add-In v2.10 for VS.NET and VC6

, 29 Jun 2003
Get statistics about your source code with a click of a button
linecount_dll.zip
LineCount.dll
WWhizInterface.mod
LineCount.chm
linecount_src.zip
LineCount.dsw
LineCount_VC5.dsw
LineCount.dsp
LineCount_VC5.dsp
LineCount.odl
LineCount.def
LineCount.clw
Help
arrowrt.gif
Index.hhk
LineCount.chm
LineCount.hhp
mailto.gif
metl011.gif
PLC.gif
small_exclamation.gif
TOC.hhc
weblink.gif
res
idr_main.ico
project.ico
TBarLrge.bmp
TBarMedm.bmp
title.ico
ExtrnSrc
Release
LineCount.dll
WWhizInterface.mod
LineCount.chm
plc110src.zip
plc111.zip
WWhizInterfaceInstaller210Beta1.exe
LineCount.dll
LineCount.chm
plc111src.zip
WWhizInterfaceInstaller210Beta1.exe
LineCount.dll
LineCount.chm
Source
LineCount.dsw
LineCount_VC5.dsw
LineCount.dsp
LineCount_VC5.dsp
LineCount.odl
LineCount.def
Help
.cvsignore
Index.hhk
LineCount.hhp
PLC.gif
TOC.hhc
arrowrt.gif
mailto.gif
metl011.gif
small_exclamation.gif
weblink.gif
res
TBarLrge.bmp
TBarMedm.bmp
idr_main.ico
project.ico
title.ico
ExtrnSrc
Debug
WWhizInterface2D.mod
plc150.zip
WWhizInterfaceInstaller212.exe
LineCount.dll
LineCount.chm
Reports
SampleAnalysis.xls
Simple-BW.xsl
Simple-Color.xsl
plc150src.zip
WWhizInterfaceInstaller212.exe
LineCount.dll
LineCount.chm
SampleAnalysis.xls
Simple-BW.xsl
Simple-Color.xsl
LineCount.dsw
LineCount.dsp
LineCount.odl
LineCount.def
LineCount.clw
.cvsignore
TOC.hhc
linecount.hhp
arrowrt.gif
Index.hhk
PLC.gif
mailto.gif
small_exclamation.gif
weblink.gif
info_dot_small.gif
TBarLrge.bmp
idr_main.ico
project.ico
HdrDownA.bmp
HdrUpA.bmp
title.ico
info.ico
TBarMedm.bmp
WWhizInterface2D.mod
plc200.zip
LineCount.cab
WWhizInterface30VC6_1016.exe
plc200src.zip
.cvsignore
LineCount.def
LineCount.dsp
LineCount.dsw
LineCount.odl
ResizableLib
.cvsignore
ResizableLib.dsp
ResizableLib.dsw
.cvsignore
Index.hhk
LineCount.hhp
PLC.gif
TOC.hhc
arrowrt.gif
info_dot_small.gif
mailto.gif
small_exclamation.gif
weblink.gif
ObjModelVC6
ObjModelVC7
MSADDNDR.tlh
MSO.tlh
dte.tlh
HdrDownA.bmp
HdrUpA.bmp
LineCountVC6.rgs
LineCountVC7.rgs
TBarLrge.bmp
TBarMedm.bmp
idr_main.ico
info.ico
lcgo.bmp
project.ico
title.ico
WWhizInterface2D.mod
plc210.zip
SetupPLC210.exe
plc210src.zip
.cvsignore
LineCount.def
LineCount.dsp
LineCount.dsw
LineCount.odl
.cvsignore
ResizableLib.dsp
ResizableLib.dsw
.cvsignore
Index.hhk
LineCount.hhp
PLC.gif
TOC.hhc
arrowrt.gif
info_dot_small.gif
mailto.gif
small_exclamation.gif
weblink.gif
MSADDNDR.tlh
MSO.tlh
dte.tlh
HdrDownA.bmp
HdrUpA.bmp
LineCountVC6.rgs
LineCountVC7.rgs
TBarLrge.bmp
TBarMedm.bmp
gallery.xsl
idr_main.ico
info.ico
lcgo.bmp
project.ico
title.ico
WWhizInterface2D.mod
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"

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

#ifndef PBS_SMOOTH
#define PBS_SMOOTH 1
#endif
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Unknown language: 0xD, 0x1 resources

#if 1
#if 0
//LANGUAGE 0xD, 0x1
//#pragma code_page(1255)
#endif //_WIN32

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

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

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

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

2 TEXTINCLUDE DISCARDABLE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\r\n"
    "#ifndef PBS_SMOOTH\r\n"
    "#define PBS_SMOOTH 1\r\n"
    "#endif\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_ENU)\r\n"
    "#ifdef _WIN32\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#endif //_WIN32\r\n"
    "#include ""res\\LineCount.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "1 TYPELIB ""LineCount.tlb""\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Bitmap
//

IDR_TOOLBAR_MEDIUM      BITMAP  MOVEABLE PURE   "res\\TBarMedm.bmp"
IDR_TOOLBAR_LARGE       BITMAP  MOVEABLE PURE   "res\\TBarLrge.bmp"

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

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,10,2,0
 PRODUCTVERSION 1,10,2,0
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x2L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904b0"
        BEGIN
            VALUE "Comments", "http://www.wndtabs.com\0"
            VALUE "CompanyName", "\0"
            VALUE "FileDescription", "Project Line Counter Add-In For Developer Studio\0"
            VALUE "FileVersion", "1, 10, 2, 0\0"
            VALUE "InternalName", "LineCount\0"
            VALUE "LegalCopyright", "Copyright � 1999, 2000 by Oz Solomonovich\0"
            VALUE "LegalTrademarks", "\0"
            VALUE "OriginalFilename", "LineCount.dll\0"
            VALUE "PrivateBuild", "\0"
            VALUE "ProductName", "Project Line Counter Add-In For Developer Studio\0"
            VALUE "ProductVersion", "1, 10, 2, 0\0"
            VALUE "SpecialBuild", "\0"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1200
    END
END

#endif    // !_MAC


/////////////////////////////////////////////////////////////////////////////
//
// Toolbar
//

IDR_TOOLBAR_MEDIUM TOOLBAR DISCARDABLE  16, 16
BEGIN
    BUTTON      IDR_MAINFRAME
    BUTTON      IDR_MAINFRAME
END

IDR_TOOLBAR_LARGE TOOLBAR DISCARDABLE  32, 32
BEGIN
    BUTTON      IDR_MAINFRAME
    BUTTON      IDR_MAINFRAME
END


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

IDD_MAIN DIALOG DISCARDABLE  0, 0, 134, 106
STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Line Counter Add-In"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "&Go!",IDC_GO,7,7,120,14,WS_GROUP
    CONTROL         "Count active &project only",IDC_ACTIVEONLY,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,7,25,120,10
    PUSHBUTTON      "&Options",IDC_OPTIONS,7,46,50,14
    PUSHBUTTON      "&About",IDC_ABOUT,7,68,50,14
    PUSHBUTTON      "&Help",ID_HELP,7,85,50,14
    DEFPUSHBUTTON   "Close",IDOK,77,85,50,14
    ICON            IDR_MAINFRAME,IDC_TITLE,90,51,20,20
    GROUPBOX        "",IDC_STATIC,77,42,50,33
END

IDD_INSERT DIALOG DISCARDABLE  0, 0, 186, 63
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Insert New Extension"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Enter new extension to insert (without the period):",
                    IDC_STATIC,7,7,172,8
    EDITTEXT        IDC_EDIT,7,21,172,14,ES_UPPERCASE | ES_AUTOHSCROLL
    DEFPUSHBUTTON   "OK",IDOK,74,42,50,14
    PUSHBUTTON      "Cancel",IDCANCEL,129,42,50,14
END

IDD_RESULTS DIALOG DISCARDABLE  0, 0, 384, 186
STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Results"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Results shown for # files:",IDC_FILECOUNT,7,9,119,8
    PUSHBUTTON      "&File Summary",IDC_FILESUMMARY,198,7,55,14
    PUSHBUTTON      "Export Results",IDC_EXPORT,260,7,53,14
    DEFPUSHBUTTON   "OK",IDOK,327,7,50,14
    CONTROL         "List1",IDC_RESULTLIST,"SysListView32",LVS_REPORT | 
                    LVS_SINGLESEL | LVS_SHOWSELALWAYS | WS_BORDER | 
                    WS_TABSTOP,7,26,370,110
    RTEXT           "Total:",IDC_STATIC,7,141,19,11
    LTEXT           "Lines",IDC_STATIC,32,141,45,11,SS_SUNKEN
    LTEXT           "Code",IDC_STATIC,81,141,45,11,SS_SUNKEN
    LTEXT           "Comments",IDC_STATIC,130,141,45,11,SS_SUNKEN
    LTEXT           "Mixed",IDC_STATIC,179,141,45,11,SS_SUNKEN
    LTEXT           "Blank",IDC_STATIC,228,141,45,11,SS_SUNKEN
    LTEXT           "Net Lines",IDC_STATIC,277,141,45,11,SS_SUNKEN
    LTEXT           "Net Code",IDC_STATIC,326,141,45,11,SS_SUNKEN
    RTEXT           "#:",IDC_STATIC,7,154,19,11
    LTEXT           "#",IDC_LINESC,32,154,45,11,SS_SUNKEN
    LTEXT           "#",IDC_CODEC,81,154,45,11,SS_SUNKEN
    LTEXT           "n/a",IDC_COMMENTSC,130,154,45,11,SS_SUNKEN
    LTEXT           "n/a",IDC_MIXEDC,179,154,45,11,SS_SUNKEN
    LTEXT           "n/a",IDC_BLANKC,228,154,45,11,SS_SUNKEN
    LTEXT           "#",IDC_NETLINESC,277,154,45,11,SS_SUNKEN
    LTEXT           "#",IDC_NETCODEC,326,154,45,11,SS_SUNKEN
    RTEXT           "%:",IDC_STATIC,7,168,19,11
    LTEXT           "%",IDC_LINESP,32,168,45,11,SS_SUNKEN
    LTEXT           "%",IDC_CODEP,81,168,45,11,SS_SUNKEN
    LTEXT           "n/a",IDC_COMMENTSP,130,168,45,11,SS_SUNKEN
    LTEXT           "n/a",IDC_MIXEDP,179,168,45,11,SS_SUNKEN
    LTEXT           "n/a",IDC_BLANKP,228,168,45,11,SS_SUNKEN
    LTEXT           "%",IDC_NETLINESP,277,168,45,11,SS_SUNKEN
    LTEXT           "%",IDC_NETCODEP,326,168,45,11,SS_SUNKEN
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME | SS_SUNKEN,320,7,1,
                    14
END

IDD_PROGRESS DIALOG DISCARDABLE  0, 0, 186, 69
STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Counting..."
FONT 8, "MS Sans Serif"
BEGIN
    CTEXT           "Processing...",IDC_PERCENT,7,7,172,8
    CONTROL         "Progress1",IDC_PROGRESS,"msctls_progress32",PBS_SMOOTH | 
                    WS_BORDER,7,17,172,14
    LTEXT           "",IDC_CURFILE,7,34,172,8
    PUSHBUTTON      "Cancel",IDCANCEL,68,49,50,14
END

IDD_OPTPAGE_OPTIONS DIALOG DISCARDABLE  0, 0, 218, 133
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Options"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Parsing",IDC_STATIC,7,7,24,8
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME | SS_SUNKEN,35,11,
                    176,1
    CONTROL         "&Parse C/C++ style comments",IDC_CHECKCOMMENTS,"Button",
                    BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,17,18,194,10
    CONTROL         "&Count blank lines seperately",IDC_COUNTBLANK,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,17,29,194,10
    LTEXT           "Files",IDC_STATIC,7,46,15,8
    CONTROL         "",IDC_STATIC,"Static",SS_BLACKFRAME | SS_SUNKEN,26,50,
                    185,1
    CONTROL         "Count &active project only",IDC_ACTIVEONLY,"Button",
                    BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,17,57,194,10
    CONTROL         "",IDC_STATIC,"Static",SS_WHITERECT | SS_SUNKEN,205,112,
                    6,6
    CONTROL         "",IDC_STATIC,"Static",SS_WHITERECT | SS_SUNKEN,197,120,
                    6,6
    CONTROL         "",IDC_STATIC,"Static",SS_WHITERECT | SS_SUNKEN,205,120,
                    6,6
END

IDD_OPTPAGE_FILES DIALOG DISCARDABLE  0, 0, 218, 133
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Files"
FONT 8, "MS Sans Serif"
BEGIN
    LTEXT           "Count lines for files with these e&xtensions:",
                    IDC_STATIC,7,7,204,8
    LISTBOX         IDC_EXT_LIST,7,18,80,108,LBS_SORT | LBS_NOINTEGRALHEIGHT | 
                    LBS_WANTKEYBOARDINPUT | WS_VSCROLL | WS_HSCROLL | 
                    WS_TABSTOP
    PUSHBUTTON      "&Insert",IDC_INSERTEXT,96,18,47,14,WS_GROUP
    PUSHBUTTON      "&Delete",IDC_DELETEEXT,96,35,47,14
    PUSHBUTTON      "&Undo",IDC_UNDO,96,52,47,14
    PUSHBUTTON      "&Reset List",IDC_RESET,150,112,61,14,WS_GROUP
END

IDD_FILESUMMARY DIALOG DISCARDABLE  0, 0, 186, 164
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Project File Summary"
FONT 8, "MS Sans Serif"
BEGIN
    CONTROL         "List1",IDC_LIST,"SysListView32",LVS_REPORT | 
                    LVS_SINGLESEL | LVS_SORTASCENDING | LVS_NOSORTHEADER | 
                    WS_BORDER | WS_TABSTOP,7,7,172,128
    DEFPUSHBUTTON   "OK",IDOK,129,143,50,14
END


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

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE 
BEGIN
    IDD_MAIN, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 127
        VERTGUIDE, 77
        TOPMARGIN, 7
        BOTTOMMARGIN, 99
        HORZGUIDE, 46
        HORZGUIDE, 73
    END

    IDD_INSERT, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 56
    END

    IDD_RESULTS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 377
        VERTGUIDE, 26
        VERTGUIDE, 32
        TOPMARGIN, 7
        BOTTOMMARGIN, 179
    END

    IDD_PROGRESS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 63
    END

    IDD_OPTPAGE_OPTIONS, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 211
        VERTGUIDE, 17
        TOPMARGIN, 7
        BOTTOMMARGIN, 126
    END

    IDD_OPTPAGE_FILES, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 211
        VERTGUIDE, 96
        VERTGUIDE, 143
        TOPMARGIN, 7
        BOTTOMMARGIN, 126
        HORZGUIDE, 18
    END

    IDD_FILESUMMARY, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 179
        TOPMARGIN, 7
        BOTTOMMARGIN, 157
    END
END
#endif    // APSTUDIO_INVOKED


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

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_LINECOUNT_LONGNAME  "Project Line Counter"
    IDS_LINECOUNT_DESCRIPTION 
                            "Counts the number of lines in your source code projects"
    IDS_CMD_STRING          "\nProject Line Counter Console\nActivates the Project Line Counter console window\nProject Line Counter Console"
    IDS_CMD_STRING2         "\nCount Project Lines\nDisplays a line count of files in your project\nCount Project Lines"
    IDS_ERR_AICLOAD         "The line counter add-in requires the AddInComm (AIC.DLL)\nlibrary to function properly, but AIC.DLL failed to load.\nAborting."
    IDS_ERR_WWHIZLOAD       "The line counter add-in requires that the Workspace Whiz! add-in be installed, but WWhiz is not loaded.\nAborting."
    IDS_ERR_WWHIZINT        "Failed to access the Workspace Whiz! interface object.\nAborting."
END

STRINGTABLE DISCARDABLE 
BEGIN
    AFX_IDS_APP_TITLE       "Line Counter Add-In"
END

STRINGTABLE DISCARDABLE 
BEGIN
    IDS_FILECOUNT           "Results shown for %1 files:"
    IDS_WRITEERROR          "Could not write to the file due to the following error:\n%1"
END

#endif    // Unknown language: 0xD, 0x1 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_ENU)
#ifdef _WIN32
LANGUAGE 9, 1
#pragma code_page(1252)
#endif //_WIN32
#include "res\LineCount.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif
1 TYPELIB "LineCount.tlb"

/////////////////////////////////////////////////////////////////////////////
#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

Oz Solomon
Experion
Canada Canada
You may know Oz from his WndTabs days. Oz has long since left client side development to work on web technologies and to consult in the R&D management field.

| Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 30 Jun 2003
Article Copyright 2000 by Oz Solomon
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid