Archive

Posts Tagged ‘MFC’

A Quick Line Counter in C++

December 11, 2009 Leave a comment

A quick source code line counter written in C++.  This project uses the Microsoft Foundation Classes (MFC), along with the standard C++ libraries. It could use some additional features and more advanced error handling, but it is fairly complete. One quick note (that several have brought to my attention), the percentages do not usually add up to 100% – that is because of the use of integers instead of floating point types, which essentially rounds down. The code is available below.

Windows Line Counter Screenshot

Download Source: WinLocCounterSample.zip (216KB)

Categories: Code, Samples Tags: ,
Follow

Get every new post delivered to your Inbox.