Conditionally Loading QBHERC Hercules Support from QuickBasic (37307)
This article was previously published under Q37307
SUMMARY
You will encounter some limitations if you wish to conditionally load
QBHERC.COM or MSHERC.COM from within a QuickBasic program.
The only way to invoke QBHERC.COM or MSHERC.COM from within a
QuickBasic program is with the SHELL statement. QBHERC.COM and
MSHERC.COM are terminate-and-stay resident (TSR) graphics drivers. TSR
programs will fragment MS-DOS memory when loaded with the SHELL
statement. You can only unfragment the memory by rebooting the
computer. Fragmentation can drastically reduce the memory available to
subsequent programs run in MS-DOS. This fragmentation problem can be
serious, and it is best to avoid SHELLing to QBHERC.COM or MSHERC.COM
or any TSR program.
Note that the Basic run-time routines must know at initialization time
(that is, when the program is started) whether or not QBHERC.COM or
MSHERC.COM has been loaded. This means a program (or batch file) that
loads QBHERC.COM or MSHERC.COM must RUN or CHAIN (or invoke) the .EXE
program that will use Hercules graphics.
This information applies to Microsoft QuickBasic 4.00, 4.00b, and
4.50, to Microsoft Basic Compiler Versions 6.00 and 6.00b, and to
Microsoft Basic PDS Version 7.00 for MS-DOS and MS OS/2.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB37307 |
|