Click here to Skip to main content
13,298,083 members (51,140 online)
Click here to Skip to main content
Add your own
alternative version


32 bookmarked
Posted 4 Aug 2001

Counting Lines in a MS VC++ 6.0 project

, 4 Aug 2001
Rate this:
Please Sign up or sign in to vote.
A program that counts the lines (source, comments, blank) in every file included in a MS VC++ 6.0 project
<!-- Download Links --> <!-- Article image -->

Sample Image - LineCounter.gif

<!-- Main HTML starts here -->


Ever wondered how many lines a project you have worked on for a month (or maybe for a year!)? Well, we did this for you :)

This program (LineCounter) was developed with one purpose only: to count your lines!

The program is able to count source code, comments (both styles: "// comment" and "/* comment */"), and blank lines. It shows the results in a couple of editboxes, and has a preview window (right click on the list).

The program opens the project file (.dsp) and throws it through the parsing code. After parsing is done the list of project files is steped-by-step and lines are counted.

That's it! The source code is pretty self explanatory, so I guess you'll manage.


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


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralTeacher caught me using Java... Pin
Stephen Kellett6-Aug-01 12:01
memberStephen Kellett6-Aug-01 12:01 
GeneralRe: Teacher caught me using Java... Pin
ck6-Aug-01 12:20
memberck6-Aug-01 12:20 
GeneralRe: Teacher caught me using Java... Pin
Paul Evans25-Mar-03 6:41
memberPaul Evans25-Mar-03 6:41 
QuestionIt's a dupe? Pin
George5-Aug-01 17:46
memberGeorge5-Aug-01 17:46 
AnswerRe: It's a dupe? Pin
_declspec5-Aug-01 22:25
member_declspec5-Aug-01 22:25 
GeneralRe: It's a dupe? Pin
Brian V Shifrin6-Aug-01 13:06
memberBrian V Shifrin6-Aug-01 13:06 
GeneralRe: It's a dupe? Pin
George7-Aug-01 2:15
memberGeorge7-Aug-01 2:15 
GeneralRe: It's a dupe? Pin
George7-Aug-01 2:16
memberGeorge7-Aug-01 2:16 
I didn't mean to accuse you, only to mention Smile | :)

It is good if the problem has more than one solution / tool, diversity rules!
GeneralRe: It's a dupe? Pin
Daniel Turini22-Nov-01 7:45
memberDaniel Turini22-Nov-01 7:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171207.1 | Last Updated 5 Aug 2001
Article Copyright 2001 by _declspec
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid