The code execution effect diagram is as follows:
The production of "Vc/delphi Engineering parser" comes down to the reason of my job role. Because my department is the SQA department, in order to promote the testing work of effective and substantial progress, I would like to develop a suitable for this project team Test tools. In addition to my actual learning process also used c++test test tools, according to these I wrote down the project, as the project is still in the development of the project, the show to everyone is a framework part, but the example contains a lot of valuable parts:
First of all, the most valuable class of the project is Cricheditctrlex class. This class is a CRichEditCtrl enhanced class:
1. File Loading (loadfromfile)
2. Preservation of documents (SaveToFile),
3. Determine the current row/column position of the cursor in CRichEditCtrl.
4. The Use of common dialog box: CFindReplaceDialog. (Find, replace strings).
Csysteminfo System Information Detection class:
1. Determine the operating system type and version number.
2. Detection System hardware configuration environment (memory/hard disk/processor)
In addition, the project involves a number of file resolution classes, Cparsedelphifile class and Cparsevcfile class, these two classes from the base class Cfileex inherited, and the specific application has a close relationship, they mainly completed the Delphi Project Document analysis, Delphi code file Class parsing and class function parsing function. The latter has mainly completed the VC project file analysis, VC source files in the class parsing function. The project also uses docking classes, loose-leaf classes, taskbar operation classes, and Super join classes
The project involves many of the underlying file operations, such as: How to filter the annotation line and string content in the program file, and so on, I think we can do a little modification of the Code annotation rate Statistics tool. The project also has how to register a hotkey, how to display a dialog box, how to add a toolbar (CToolBar) In a dialog box, and how to use the 256-color icon on the sidebar, and so on. Tell the truth inside a lot of content, so dedicate to everybody, hope can help to everybody!
This article supporting source code