Wayback Machine
OCT DEC FEB
Previous capture 18 Next capture
2003 2004 2006
19 captures
10 Jul 01 - 5 May 06
sparklines
Close Help

Using the Microsoft Visual C++ 6 IDE

Here are some useful hints if you havent used the Microsoft IDE very much.

Browsing

vc_classview.jpg (58408 bytes)  

You can use the ClassView list that appears by default on the left of the screen to browse through the classes. This shows a simple list of all the classes in the current project, and all their methods and member variables. A lock symbol indicates a private method (rather than a public method)

It doesnt show inheritance though.

.
vc_browsebar.jpg (7082 bytes) You can use the Derived Classed / Base Classes buttons on the Browse toolbar to display inheritance trees. Just select a classname in the editor, or ClassView, and click the button. You may need to recompile the project if the browse info is not available.
.
vc_browsebar2.jpg (7114 bytes) You can use the Definitions and References buttons on the same toolbar to search for a method / member variable / class / function or macro declarations (Reference), or the corresponding implementation (Definition). These buttons also appear as options on the right-click menu within the editor (this is generally the method that I find easiest for navigating through the source code).
.
vc_wizbar.jpg (4640 bytes) The Wizard bar provides yet another way of searching for the definitions and declarations of methods.

Find in Files (Select Edit menu... Find In Files...)

This is one of the most useful tools in the IDE. It does a search over all the files in the project, and has options to extend the search to their include files and other directories. Click on the "Advanced>>" button to open up a list of additional directories to search in.

vc_finddlg.jpg (56883 bytes)

As you can see, I've added the shared pm_shared and engine directories to my standard find setup.

When you've run the Find, just double click on a line in the Find In Files results list to take you to that line of code.

steve