CodeView 4.0 Open Source Dialog Displays *.CPP by Default

ID: Q95199

4.00 4.01 | 4.00 4.01

MS-DOS    | WINDOWS
kbtool

The information in this article applies to:

SUMMARY

In version 4.0 of the CodeView debugger, distributed with the Microsoft C/C++ compiler, version 7.0, choose Open Source from the File menu to open a source file. By default, the Open dialog box lists all .CPP files in the selected directory -- the list box uses the *.CPP wildcard file selection string.

To change the default wildcard selection string, modify the TOOLS.INI file to specify the C expression evaluator. In CodeView for MS-DOS, modify the TOOLS.INI file to add the following line after the [CV] tag:

   Eval:C:\C700\BIN\EED1CAN.DLL .C .ASM .H

In CodeView for Windows, modify the TOOLS.INI file to add the following line after the [CVW] tag:

   Eval:C:\C700\BIN\EEW0CAN.DLL .C .ASM .H

If your C/C++ files are installed in a directory other than C:\C700, modify the line to specify the appropriate directory.

CodeView version 4.10 defaults to *.c?? as the wildcard selection string.

MORE INFORMATION

The wildcard file selection string in the Source Open dialog box is specified by the expression evaluator loaded at run time. If the TOOLS.INI file does not explicitly specify an expression evaluator, CodeView uses the C++ expression evaluator, EED1CXX.DLL or EEW0CXX.DLL, by default. Because C expressions are also valid in C++, they are evaluated correctly.

Note that specifying the C expression evaluator is valid only if your application contains no C++ code, because the C expression evaluator does not recognize any C++ expression that is not also a part of the C language.

CodeView looks for the TOOLS.INI file in the directory specified in the INIT MS-DOS environment variable, typically C:\C700\INIT. If you do not have a TOOLS.INI file, create a file with that name in the appropriate directory. If your TOOLS.INI file does not have a section headed with the [CV] or [CVW] tag, as appropriate, place a line in the file that contains the tag that corresponds to the utility.

For additional information about the TOOLS.INI file and CodeView, see page 329 of the Microsoft C/C++ "Environment and Tools" manual for version 7.0. CodeView expression evaluators are discussed on pages 331 and 332, and pages 403-406. Note that the example on page 332 is incorrect; CodeView expression evaluators are installed in the C700\BIN directory, not the C700\DLL directory as indicated in the manual.

Additional reference words: kbinf kbinf 4.00 KBCategory: kbtool KBSubcategory: CvwIss Keywords : kb16bitonly

Last Reviewed: July 18, 1997