Tuesday, July 14, 2009

What is graphic functions header file in Microsoft Visual C++ 6.0?

In a C++ Source File program that runs in DOS, what header file contains graphic functions such as _setpixel(),





_setvideomode(), _lineto(), …? What is it's path and name?





Thanks.

What is graphic functions header file in Microsoft Visual C++ 6.0?
If your code will work purely in DOS mode (no Windows at all) you can get to a graphics mode using DOs Interrupts to set mode which defines the resolution and color depth (in DOS there is no wayb to use high resolutions with out using compatible VESA drivers for your video card) then can put pixels just by directly writting to memory locations segment b800h and a000h point to video adapters video buffer.





If you are using Windows you can use GDI.h (Graphics Device Interface) for a standardized video API independent of video driver. You use device contexts to access the graphic functions.





Loren Soth


No comments:

Post a Comment