Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/39362

From BetaArchive Wiki
Knowledge Base

QuickBasic Compile Errors Not Given in M.EXE Editor; No BC /Z

Article ID: 39362

Article Last Modified on 11/21/2006

This article was previously published under Q39362


QuickBasic versions 1.x, 2.x, 3.00, 4.00, 4.00b, and 4.50 do not generate the error message format necessary for the Microsoft Editor (M.EXE). You can compile programs from within the M.EXE Editor, but return code 4 (which is an ARG COMPILE return code stating an error occurred) will not give the error message inside the M.EXE Editor program.

Note: The Microsoft M.EXE Editor is not provided with the QuickBasic package. The Microsoft Editor is provided with Microsoft Basic Compiler versions 6.00 and 6.00b for MS-DOS and MS OS/2, with Microsoft Basic Professional Development System (PDS) version 7.00 for MS-DOS and MS OS/2, and with some Microsoft system languages.


The BC.EXE environment that comes with QuickBasic versions 4.50 and earlier does not allow the /Z option, which produces the proper error message format for the M.EXE Editor. However, the /Z option is supported by the BC.EXE environment provided with Microsoft Basic Compiler versions 6.00 and 6.00b for MS-DOS and OS/2. Adding the following line to the TOOLS.INI file under section [M] will allow the BC.EXE version 6.00 or 6.00b environment to be used from within the M.EXE Editor:


If this EXTMAKE line is in the TOOLS.INI and ARGCOMPILE is set to F5 (ARGCOMPILE:F5) in the TOOLS.INI file, pressing F5 while editing Basic source code in the M.EXE Editor causes BC.EXE to be invoked. If BC.EXE finds errors, they are returned correctly to the M.EXE Editor and the cursor is placed on the first error.

Additional query words: QuickBas BasicCom

Keywords: KB39362