The use of MFC. BSC to read the source code can provide a lot of convenience, the following describes the usage
1. Open a project as needed. If you do not open the project, the source browser option is not available in the tool menu.
2. Open the previous articleArticleIn the mentioned MFC. BSC (or a self-generated file), you can select the type BSc in the open dialog box, so that you can quickly find it.
3. Click the source browser button under the tool menu to bring up a dialog box through which you can query.
4. Use of this dialog box
The first window is identifier. You can enterFunction Name,Class Name,Predefined name,Macro name,File Name.
If you areFirst windowEntered inFunction name, class name, predefined name, macro nameIn the second window, you can select the first item: Definitions and references. Then press OK to viewDefinitions of functions, classes, predefined names, and macros, and where they are referenced.
If you areFirst windowEntered inFile NameIn the second window, you can select the second item: file outline. Press OK to viewWhat classes and functions are declared in the file.
If you areFirst windowInputClass NameIn the second window, you can select the third and fourth items: base classes and members and derived classes and members. Press OK to viewThe base class of the class and its members, the derived class of the class and its members.
If you areFirst windowInputFunction NameIn the second window, you can select the last two items: Call Graph and caller graph. After pressing OK, you canCheck who and who calls the function..
Another tips: when the final result is displayedFunction name, class name, predefined name, macro name, double-click the left mouse button, Then include theseName DefinitionOrImplemented FileIt is opened.