Vc/delphi Engineering Parser

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.