Line Counter for MS VC++ 6.0 Projects | CodeGuru

Line Counter for MS VC++ 6.0 Projects

. Environment: VC6 SP4, WIN NT 4.0 / 2000, WIN 9x (95, 98, Me) Anyone ever wondered how many lines are in a project you 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! […]

Written By
CodeGuru Staff
CodeGuru Staff
Oct 3, 2001
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

.

Environment: VC6 SP4, WIN NT 4.0 / 2000, WIN 9x (95, 98, Me)

Anyone ever wondered how many lines are in a project you 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.

Downloads

Download source (LineCounter_src.zip)- 37.9 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.