C's _getvideoconfig Returns Incorrect Mode If Set from Basic (64875)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.1
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
This article was previously published under Q64875 SUMMARY
The C graphics function _getvideoconfig will not correctly return the
current video mode set by a Basic program. To work around this
problem, the BIOS interrupt 10 (hex) function 0F (hex) can be used in
place of the _getvideoconfig function. This is shown in the sample
programs below.
This information applies to QuickBasic versions 4.00, 4.00b, and 4.50;
to Microsoft Basic Compiler versions 6.00 and 6.00b; and to Microsoft
Basic Professional Development System (PDS) versions 7.00 and 7.10 for
MS-DOS and MS OS/2.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB64875 |
---|
|