Reverse engineer Microsoft Visual C++ 6.0 source code
-
Customize Visual C++.
how
-
In Visual C++, on the Tools menu, click Customize.
-
In the Customize dialog box, click the Add-Ins And Macro Files tab.
-
In the Add-Ins And Macro Files list, select Visio UML Add-In.
The Visio UML Add-In appears with a check mark beside it.
-
Click Close.
The floating, five-button Visio UML Add-In toolbar appears.
-
If you want the toolbar to be available each time you open Visual C++, dock the toolbar by dragging it to the toolbar area.
Tip: If you want to create keyboard shortcuts for each of the Visio UML Add-In toolbar buttons, on the Tools menu click Customize, click the Keyboard tab, and then choose the Add-Ins category.
To further specify the system files you want to reverse engineer (MFC, ATL, or Include), click the Visio UML Options button .
-
-
Generate a Browse Information file.
how
-
In Visual C++, on the Project menu, click Settings.
-
In the Project Settings dialog box, choose the type of build configuration you want, click the C/C++ tab, and then select Generate Browse Info.
-
Click the Browse Info tab to specify the name and location of the Browse Information file, select Build Browse Info File, and then click OK.
-
-
Build the project in Visual C++.
Note: If you make changes to a Visual C++ project after reverse engineering the project, you must rebuild the project, and then reverse engineer the project into your Visio program to see the changes.
-
In Visual C++, click the Reverse Engineer UML Model toolbar button on the Visio UML Add-In toolbar.
If more than one project exists in the Visual C++ workspace, select the project you want to reverse engineer (in the Select Project dialog box), and then click OK.
If more than one browse file is present in the project hierarchy, select the browse file (in the Select Browse File dialog box), and then click OK.
It may take several seconds to extract the class information from the Browse Information file. When the extraction is complete, the Visio UML Model Diagram opens with a blank static structure diagram drawing page and a tree view in the Model Explorer, populated with icons that reflect the class definitions in the source code.
-
In the Visio UML Model Diagram, drag icons from the tree view onto the drawing page to create a static structure diagram that represents a view of the model.
No comments:
Post a Comment