KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q49779: Using Graphics in Mixed-Language Calls between QC and QB

Article: Q49779
Product(s): See article
Version(s): 2.00 2.01
Operating System(s): MS-DOS
Keyword(s): ENDUSER | b_quickbasic | mspl13_c
Last Modified: 17-JUL-1990

Problem:

I want to use _imagesize(), _getimage(), and _putimage() in the C
graphics library after loading the graphics image from QuickBASIC.

Response:

The C module does not recognize that the screen is in graphics mode if
the video mode is set in the BASIC module. Instead, set the video mode
in a C module using the following steps:

1. Start from the main in BASIC.

2. Call a C function to initialize the video mode.

3. Return to BASIC and load in the graphics image.

4. Call a C function to use functions from the C graphics library.

For more information about QuickBasic and QuickC graphics
compatibility, search on the following words:

   QuickBASIC and QuickC and link and graphic

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.