Project Line Counter Add-In

Line Counter Main Dialog

Project Statistics

Environment: Visual C++ 5 and 6

Description

The Project Line Counter add-in reports statistics about files in your Visual C++ projects. Line Counter was created in order to demonstrate various programming tools and techniques.

Features

  • Varied statistical data about your source code, including:
    • Number of lines
    • Lines with code
    • Lines with C/C++ style comments
    • Mixed lines (code and comments)
  • Reports the distribution of files in your project, by extension.  NEW!
  • Can export the statistical data to a text report file.  NEW!
  • Automatic scan of your project file.
  • Single-click activation.
  • Various parsing options.
  • Online help.
  • Full source code.

The Source Code

Line Counter is a demo/proof of concept application for demonstrating various technologies:

  1. Reusable components from WndTabs (pluggable online help, registry configuration, etc.)
  2. The Add-In Communication Library.
  3. Joshua Jensen's Workspace Whiz! Interface - a powerful extension library for DevStudio add-ins.
All of these components are discussed in detail in the add-in's on-line help file.

What's New?

Version 1.11 is a maintenance release that adds support for WWhizInterface! v2.10

The previous Version 1.10 was a maintenance release, with some new features and a few internal changes:

  • Line-Counter no longer uses the STL, and dependencies on the various STL runtime libraries (such as MSVCP60.dll) has been removed.
  • New feature: A file summary dialog which displays the distribution of files by extension.
  • New feature: Ability to export the statistical results as a simple text report.
  • The old HTML Help support module (HTMLHelpBase.cpp) has been replaced with a new and much improved support module (HHSupp.cpp). Unlike the old HTMLHelpBase which only handled help for dialogs and property pages, the new support module supports full MFC applications. There have also been improvements in the dialog handling code.
See the full version history.

Downloads

Download binaries (v1.11) - 117 KB
Download binaries with source (v1.11) - 221 KB
NOTE: Please refer to the PLC.txt file for installation instructions.




Comments

  • How to install for VS .NET 2003?

    Posted by Frank Lagattuta on 03/23/2005 07:26pm

    How do you install this addin for Visual Studio .Net 2003?

    Reply
  • Export Summary crashes!

    Posted by Legacy on 09/05/2002 12:00am

    Originally posted by: Ramachandran/Raghu

    Good tool - useful in finding the LOC and comment percentage for large size projects.
    However, we found that the application crashes consistently when attempted to export the result summary.
    Not only this, it even kills the active Visual Studio instance.
    Would be nice if this bug is fixed...

    Good going!

    Mumbai, INDIA

    Reply
  • Nice code

    Posted by Legacy on 06/06/2002 12:00am

    Originally posted by: Ai Xing

    Excellent source.

    Reply
  • exclusive files

    Posted by Legacy on 02/21/2002 12:00am

    Originally posted by: smxiang

    for projects that reuse source files from other projects or common libraries, the resued files should be not take in count. so, how about to add "exclusive files list" feature?

    thanks for your great work!

    Shine
    ABCom, R&D
    Shanghai, China

    Reply
  • Great..

    Posted by Legacy on 07/11/2001 12:00am

    Originally posted by: Shinto


    Good work Oz.

    saved lot of my time.

    -shinto

    Reply
  • Suggestions

    Posted by Legacy on 05/10/2001 12:00am

    Originally posted by: Darrell Gerber

    Some suggestions for future versions:
    
    

    1) Apply only to the current file
    2) Apply only to the current selection
    3) Options for what is counted as not a line of code.
    i.e. -- lines with only a curly bracket may or may not be counted.

    Otherwise it is great. Saved me alot of time of having to write a macro or something myself.

    Reply
  • Excellent

    Posted by Legacy on 04/22/2001 12:00am

    Originally posted by: sally

    Excellent - Just what I needed
    
    

    Thanks
    Sally

    Reply
  • !

    Posted by Legacy on 04/04/2001 12:00am

    Originally posted by: TheAxe

    Wonderful..

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • "Security" is the number one issue holding business leaders back from the cloud. But does the reality match the perception? Keeping data close to home, on premises, makes business and IT leaders feel inherently more secure. But the truth is, cloud solutions can offer companies real, tangible security advantages. Before you assume that on-site is the only way to keep data safe, it's worth taking a comprehensive approach to evaluating risks. Doing so can lead to big benefits.

  • Live Event Date: August 20, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT When you look at natural user interfaces as a developer, it isn't just fun and games. There are some very serious, real-world usage models of how things can help make the world a better place – things like Intel® RealSense™ technology. Check out this upcoming eSeminar and join the panel of experts, both from inside and outside of Intel, as they discuss how natural user interfaces will likely be getting adopted in a wide variety …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds