Vcextend expands the function of VC6.0, including function batch generation, automatic data interface generation, annotations can be hidden, annotations automatically generate documents and other functions, can greatly improve the efficiency of VC.
Vcextend uses VC60 's extended macro interface, which is written in VBScript and is almost indistinguishable from the VC's own commands. Vcextend completely open source code, can be used and modified free of charge.
Below are some of the main commands:
Create a new class: Create a clean and refreshing class framework, the code template can be modified freely.
Code collation: Generates function bodies for function declarations, generates read-write interfaces for member variables (including declarations and implementations), and reorder function bodies in declared order. These operations are done at once, whether you are designing a new class or modifying a class, and this command will work well.
Note: Generate annotation templates, annotations can be hidden, function body can be adjusted to write the function of the note to read and modify. Note automatically generates a document similar to MSDN. Document data is stored in an XML file, and you can define the display format as you prefer.
Annotation batch: Show/Hide all detailed comments, show/hide annotation summaries, automatically generate annotations for data interface functions, document collation.
First, prepare----start!
Of course, you have to download Vcextend.rar first. In addition, you will need to install Microsoft's XML plugin.
After unpack, you can see the TXT and Doc folders, TXT is some of the code templates used to generate new classes, Doc folder to store the documents generated by your comments and the tools to display the document. Use Vcextend in your project to copy these two directories to the root of your project, the following explanation uses the example directory of the demo project, TXT and Doc folder is already inside.
VCEXTEND.DSM is the Vcextend source code, copy it to C:\Program filesmicrosoft\ Visual Studio \ common\ msdev98\ directory and hook up the commands provided inside the toolbar , you can use it.
If you have never used VC60 extensions, you can follow the instructions below.
Start VC60, do not open any works.
Select Macro in the Toos menu, click Options >>, click Load Files, select the check box in front of Vcextend, and uncheck the other boxes.
Click the Toolbars tab and create a new toolbar named Vcextend.
Clicking on the Commands tab will display all Vcextend commands in the Macros,commands box in the category Drop-down list.
Select Classnew, drag onto the Vcextend toolbar, select Text Only in the dialog box that pops up, and you will see that the Classnew command is already on the toolbar. Hang the other commands on the toolbar.
In order to facilitate the description, we first use text only, later, when you are familiar with the vcextend, you can change the text button to your favorite icon.
Select All Editors in the show Menus for Drop-down list and click Close to dismiss the dialog box.
Close VC60, and then reopen it. OK, here's how it tastes!