Click here to Skip to main content
15,879,535 members
Articles / Desktop Programming / MFC

CPU (Code Printing Utility) - A nice to have Source Code Printing Utility.

Rate me:
Please Sign up or sign in to vote.
1.27/5 (19 votes)
2 Jun 20022 min read 144.9K   620   21   30
CPU (Code Printing Utility) - A source code printing utility that gives a clear view of your source code.

Sample Image - cpu_screen.gif

Introduction

 

The CPU (Code printing Utility) is a source code printing utility designed by a Programmer for Programmers to save time and money. It takes care of formating and printing your source code while you concentrate on writing code. Therefore it saves your time. It prints upto 94 lines per page, 130 characters per line and both sides of the page, so it saves upto about 75% of your paper thereby saves money. It can speak and understand any language as long as your code is a text file. That means you may print source code of any language like C, C++, Visual Basic, Cobol, Algol, PL/SQL, Transact SQL and many others. You can print even any text file as well. The print out gives you the complete picture of your source, easy to read, lot of information in one page.

The CPU is especially helpful for people using network printer. In a network environment, from the print out, it is impossible to identify the owner, and usually mixed up with the print out of other people. The CPU has solution for that. It prints user name, page number, filename, date time etc. in the title bar of each page. So it is easy to identify the owner and will not mixed up as the print out have filename and page number.

How to use it

Please note that this utility works ONLY with laser printer(HP LeserJet III or higher or compatible).

Follow the following steps to print your source code:
Step1: Select a source code or text file by clicking on "Select File" button.
Step2: Enter your name in the "User Name" text box (Optional).
Step3: Click on "Create Image" button to create the image file.
          It will create an image file in the same directory as the source file.
          An extension .cpu will be added to the new file name.
Step4: Finally click on "Print" button.

Please note that not all the options are available in this demo version. Full version is still under development. UNIX version is available.

 

<p> </p>

<h2>Legal/Illegal Notice:</h2>
The CPU (Code Printing Utility) is copy righted product and intended for personal use only not for corporate use. It's not illegal to distribute it to your friends, however you are not allowed to sell it or bundle it with any other products. This is a trial product and may not have all the functionality or options. It may expire after a certain number of use or period.The product is believed to be bug free, however author does not take any responsibility of breaking you hardware or software or anyware in any way.<br><br>
<p>

</p><p></p>

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


Written By
Web Developer
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralHaha Pin
Swinefeaster29-Jun-02 22:12
Swinefeaster29-Jun-02 22:12 
GeneralUseful utilites.... Pin
megaadam3-Jun-02 23:21
professionalmegaadam3-Jun-02 23:21 
QuestionWho would really need such a tool? Pin
Daniel 'Tak' M.3-Jun-02 8:54
Daniel 'Tak' M.3-Jun-02 8:54 
AnswerRe: Who would really need such a tool? Pin
matrowang19-Jul-03 4:53
matrowang19-Jul-03 4:53 
GeneralCodeJet Pin
3-Jun-02 7:26
suss3-Jun-02 7:26 
GeneralRe: CodeJet Pin
Philippe Lhoste4-Jun-02 3:14
Philippe Lhoste4-Jun-02 3:14 
GeneralUnuseable Pin
Claudius Mokler3-Jun-02 5:50
Claudius Mokler3-Jun-02 5:50 
... "works only with laser printers"

doesn't detail _what_ laser printers; the "functionality" dragging a created file onto a printer icon suggests that the Windows printer driver is completely circumvented and binary printer data for the author's printer is being produced.
This is braindead.

Other printing settings can't be configured
- tab width
- font
- font size

No, this program is unuseable and won't touch my hard disk. Ever.
Generalwhat's this? demo's on CP ? ... Pin
Mario M.3-Jun-02 0:45
Mario M.3-Jun-02 0:45 
GeneralRe: what's this? demo's on CP ? ... Pin
3-Jun-02 4:49
suss3-Jun-02 4:49 
GeneralRe: what's this? demo's on CP ? ... Pin
Christian Graus3-Jun-02 13:40
protectorChristian Graus3-Jun-02 13:40 
GeneralRe: what's this? demo's on CP ? ... Pin
Philippe Lhoste4-Jun-02 3:00
Philippe Lhoste4-Jun-02 3:00 
GeneralActually this is not needed. Pin
Prem Kumar2-Jun-02 23:30
Prem Kumar2-Jun-02 23:30 
GeneralRe: Actually this is not needed. Pin
3-Jun-02 0:44
suss3-Jun-02 0:44 
GeneralRe: Actually this is not needed. Pin
Thomas Freudenberg3-Jun-02 2:20
Thomas Freudenberg3-Jun-02 2:20 
GeneralInstead of spending money with this Pin
Daniel Turini2-Jun-02 22:34
Daniel Turini2-Jun-02 22:34 
GeneralRe: Instead of spending money with this Pin
Christian Graus2-Jun-02 22:49
protectorChristian Graus2-Jun-02 22:49 
GeneralRe: Instead of spending money with this Pin
3-Jun-02 5:10
suss3-Jun-02 5:10 
GeneralRe: Instead of spending money with this Pin
Christian Graus3-Jun-02 13:40
protectorChristian Graus3-Jun-02 13:40 
GeneralRe: Instead of spending money with this Pin
Tim Smith3-Jun-02 13:53
Tim Smith3-Jun-02 13:53 
GeneralRe: Instead of spending money with this Pin
Ed Gadziemski3-Jun-02 15:30
professionalEd Gadziemski3-Jun-02 15:30 
Generala2ps Pin
2-Jun-02 21:57
suss2-Jun-02 21:57 
GeneralRe: a2ps Pin
peterchen3-Jun-02 1:31
peterchen3-Jun-02 1:31 
QuestionWhen did you print code the last time? Pin
Andreas Saurwein2-Jun-02 21:45
Andreas Saurwein2-Jun-02 21:45 
AnswerRe: When did you print code the last time? Pin
William E. Kempf3-Jun-02 11:59
William E. Kempf3-Jun-02 11:59 
GeneralRe: When did you print code the last time? Pin
27-Jun-02 4:29
suss27-Jun-02 4:29 

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.