Initializing the Graphics Library from an Application

ID: Q70787


The information in this article applies to:

In Microsoft C versions 6.0, 6.0a, 6.0ax, C/C++ version 7.0, and Visual C++ version 1.0 it is sometimes necessary to explicitly initialize or reinitialize the C run-time graphics library from an application program. The following are two situations where this procedure is necessary:

In both of these cases, a call to the undocumented function _QCGINIT() resolves the problem because this initializes the graphics library.

_QCGINIT() is prototyped as follows:

   void _far _cdecl _QCGINIT(void); 
NOTE: _QCGINIT() is an undocumented function that may or may not be included in subsequent releases of the graphics library. Please keep this in mind when writing code to take advantage of this function. Microsoft makes no claims and offers no promises regarding this function in the areas of performance, reliability, future availability, or customer support.

_QCGINIT() is __QCGINIT() in Visual C++ version 1.0 (2 underscores). 

Additional query words: kbinf 6.00 6.00a 6.00ax 7.00 1.00 qcginit


Keywords          : kb16bitonly 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: July 21, 1999