5,139,275 members and growing! (15,833 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Tools with source code     Intermediate

Counting Lines in a MS VC++ 6.0 project

By _declspec

A program that counts the lines (source, comments, blank) in every file included in a MS VC++ 6.0 project
VC6, C++, Windows, MFC, VS, VS6, Dev

Posted: 4 Aug 2001
Updated: 4 Aug 2001
Views: 85,765
Announcements



Search    
Advanced Search
Sitemap
24 votes for this Article.
Popularity: 5.69 Rating: 4.12 out of 5
1 vote, 7.7%
1
0 votes, 0.0%
2
1 vote, 7.7%
3
3 votes, 23.1%
4
8 votes, 61.5%
5

Sample Image - LineCounter.gif

Introduction

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.

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

About the Author

_declspec



Location: United States United States

Other popular Applications & Tools articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 27 (Total in Forum: 27) (Refresh)FirstPrevNext
Subject  Author Date 
Generalhow to use the code counter in perl?membermoaweah naser21:27 17 Jul '07  
AnswerRe: how to use the code counter in perl?memberAS-codeproject13:09 14 Aug '07  
GeneralSome Modifications I would suggestmemberRay Steel14:44 13 Oct '04  
Generalthis is definitely a useful tool, and...memberZhefu Zhang9:10 2 Dec '03  
GeneralRe: this is definitely a useful tool, and...sussAnonymous23:05 16 Sep '04  
Generalyour program is not counting lines correctlymemberevilman10:33 1 Feb '03  
Generalwhy?memberIvan Tsygoulyov0:24 25 Dec '02  
GeneralMmmmh...memberRage5:45 26 Nov '02  
Generaldoes anyone really need this?memberkokie10:03 19 May '02  
GeneralRe: does anyone really need this?memberDoug Kimzey10:27 20 May '02  
GeneralRe: does anyone really need this?memberPerFnurt16:24 6 Feb '04  
GeneralRe: does anyone really need this?memberAnonymous14:45 28 May '02  
GeneralRe: does anyone really need this?memberNelno16:27 18 Dec '02  
GeneralRe: does anyone really need this?memberDimitris Vassiliades9:40 19 Mar '03  
GeneralIt is not bad, Indeed it is much useful than that upstair guy whose article is 3- ptmemberZhefu Zhang12:11 11 Nov '03  
GeneralHmm, .dswmemberRazvan Marcus4:19 12 Dec '01  
GeneralGood workmemberRejeesh.T.S0:09 9 Aug '01  
GeneralAnd those constructions?memberAnonymous12:19 6 Aug '01  
GeneralTeacher caught me using Java...memberStephen Kellett12:01 6 Aug '01  
GeneralRe: Teacher caught me using Java...memberck12:20 6 Aug '01  
GeneralRe: Teacher caught me using Java...memberPaul Evans6:41 25 Mar '03  
GeneralIt's a dupe?memberGeorge17:46 5 Aug '01  
GeneralRe: It's a dupe?member_declspec22:25 5 Aug '01  
GeneralRe: It's a dupe?memberBrian V Shifrin13:06 6 Aug '01  
GeneralRe: It's a dupe?memberGeorge2:15 7 Aug '01  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 4 Aug 2001
Editor: Chris Maunder
Copyright 2001 by _declspec
Everything else Copyright © CodeProject, 1999-2008
Web18 | Advertise on the Code Project