KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q11966: Using Two Monitors with CodeView

Article: Q11966
Product(s): See article
Version(s): 1.00 1.10 2.00 2.10 2.20 2.30 | 2.20 2.30
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | TAR56465 | mspl13_basic
Last Modified: 11-SEP-1989

Question:

How do I use CodeView with two monitors? Where is this option
documented?

Response:

Invoke CodeView with the following command:

   CV /2 PROGRAM

This command tells CodeView to put its display on your secondary
monitor and lets your program's output go to the default display. This
option is documented in the "CodeView Options" section of the
"Microsoft CodeView and Utilities Software Development Tools for the
MS-DOS Operating System" manual in all products except Microsoft C
Version 4.00, where it is documented in the README file.

You must have two monitors and two display adapters to use this
feature. You must have a monochrome and a non-monochrome monitor;
because a monochrome monitor's video memory is in a different
location than a CGA, EGA, or VGA's. This is how CodeView implements
the /2 option, by writing to both sets of video memory.

When you use the /2 option, your program's display appears on the
current default adapter and monitor, while the debugging display
appears on the secondary adapter and monitor. You can switch which
monitor is the current default adapter with the MS-DOS MODE command.
"MODE MONO" causes standard output to go to the MDA, while "MODE CO80"
causes standard output to go to your CGA, EGA, or VGA.

For example, if you have both a CGA and an MDA, you might want to set
the CGA up as the default adapter. You could then debug a graphics
program with the graphics display appearing on the graphics monitor
and the debugging display appearing on the monochrome adapter.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.