Editing Source Code

Chapter 2 - A Quick Start Using the IDE

Visual C++ 6: The Complete Reference
Chris H. Pappas and William H. Murray, III
  Copyright 1998 The McGraw-Hill Companies

Tools Menu
The Tools menu accesses commands that enable you to work with your query. The Tools menu commands as described below apply to the Query Designer (see Figure 2-8).
Figure 2-8: The Visual C++ Tools menu
Source Browser...
You use this option to browse your information files. You can instruct the compiler to create an SBR file for each object file (OBJ) it compiles. When you build or update your browse information file, all SBR files for your project must be available on disk. To create an SBR file with all possible information, specify Generate Browse Info in the Project Settings dialog box (or /FR). To create an SBR file that doesn’t contain local symbols, specify Generate Browse Info, and then check Exclude Local Variables from Browse Info (/Fr on the compiler command line). If the SBR files contain local symbols, you can still omit them from the BSC file by using BSCMAKE’s /El option.
Close Source Browser File
This closes the currently active *.SBR file.
Error Lookup
You use the Error Lookup command to retrieve a system error message or module error message based on the value entered. This option retrieves the error message text automatically if you drag and drop a hexadecimal or decimal value from the Developer Studio debugger or other OLE-enabled application. You can also enter a value either by typing it in or pasting it from the Clipboard and clicking Look Up. The accelerator keys for Copy (ctrl-c), Cut (ctrl-x) and Paste (ctrl-v) work for both the Value and Error Message boxes if you first highlight the text.
ActiveX Control Test Container
This command launches the Test Container application, shipped with Visual C++. The program is an ActiveX control container for testing ActiveX controls. Test Container allows the control developer to test the control’s functionality by changing its properties, invoking its methods, and firing its events. In addition, Test Container can display logs of data-binding notifications and provides facilities for testing ActiveX control’s persistence functionality.
OLE/COM Object Viewer
The OLE/COM Object Viewer displays the ActiveX and OLE objects installed on your computer and the interfaces they support. It also allows you to edit the registry and look at type libraries.
Spy++
The Spy++ option activates a Win32-based utility that gives you a graphical view of the system’s processes, threads, windows, and window messages. The Spy++ utility provides a toolbar and hyperlinks to help you work faster. Spy++ also allows you to refresh the active view, supplies a Window Finder Tool to make spying easier, and provides a Font dialog box to customize view windows.
MFC Tracer
To help debug windows programs, MFC provides the MFC Tracer command. This will display, to a debugging output window or console, messages about the internal operation of the MFC library as well as warnings and errors if something goes wrong in your application.
Visual Component Manager
The main screen of Visual Component Manager features a toolbar to select commonly used commands and three panes for viewing the databases, folders and subfolders, and individual items stored by Visual Component Manager. These elements are briefly described next.
Register Control
OLE controls, like other OLE server objects, can be accessed by other OLE-aware applications. This is achieved by registering the control’s type library and class. You use the Register Control command for this purpose.
Customize...
The Customize... menu item selects the Customize dialog box, which allows you to add, delete, and customize tools used by the Tools menu. Additional options allow you to assign shortcut keys to various commands.
Options...
The Options... menu item brings up the Options submenu, which offers commands that allow you to customize the Visual C++ IDE itself or modify how your application is developed. If you are a first-time user of Microsoft Visual C++, feel free to examine the contents of the Options submenu. However, until you fully understand the ramifications of changing install defaults, look but do not touch. Many of the changes that can be made at this level have global effects, and an incorrectly set option can literally halt all further application development.
Macro... / Record… / Play…
You use this option to create VBScript macros. The macros are procedures you write in the Visual Basic Scripting Edition language. With VBScript macros, you can simplify your work in Developer Studio. For example, in a macro you can combine several commands, speed up routine editing, or automate a complex series of tasks.

Books24x7.com, Inc 2000 –  


Visual C++ 6(c) The Complete Reference
Visual Studio 6: The Complete Reference
ISBN: B00007FYGA
EAN: N/A
Year: 1998
Pages: 207

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net