home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / DESQVIEW / TECH / DVA_TCPP.ZIP / DVCONIO.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-06  |  1.9 KB  |  48 lines

  1. /***************************************************************************\
  2. *
  3. *
  4. *   PROCEDURE         - DESQview TC++ ConIO
  5. *
  6. *   PURPOSE           - makes the TC++ version 1.0 conio routines
  7. *                       DESQview screen aware.
  8. *
  9. *   GENERAL ALGORITHM - The author (MAP) has noted that during the TC++
  10. *                       start up code a program identifies the screen type of
  11. *                       screen it is running on, and places the segment address
  12. *                       of the screen display in the word directly before the
  13. *                       directvideo.  Therefore, using this as the input to
  14. *                       dv_get_video_buffer() and placing the return value in
  15. *                       the same location should make all the later conio
  16. *                       calls use the DESQview video buffer.  This function
  17. *                       should be called as close to the begin of the programs
  18. *                       executions as possible.  It will no longer be required
  19. *                       to set directvideo to 0 for the program to be DESQview
  20. *                       screen nice.
  21. *
  22. *   INPUT             - none.
  23. *
  24. *   OUTPUT            - none.
  25. *
  26. *   SYSTEM            - Borland's Turbo C++ v1.0 on an EPSON EQUITY III+
  27. *                       running MS-DOS v4.01 & DESQview v2.26.  Should operate
  28. *                       under any MS/PC-DOS 2.x or greater & DESQview 2.x or
  29. *                       greater.  Unknown if it will work under any version
  30. *                       of TC greater than 1.0.
  31. *
  32. *   HISTORY:
  33. *      90-07-28       - Initiated Mark Potter
  34. *
  35. \***************************************************************************/
  36.  
  37. #include <conio.h>
  38.  
  39. #include "dvaware.h"
  40.  
  41. void dv_conio( void ) {
  42.    *(&directvideo-1) = (unsigned int)dv_get_video_buffer(
  43.                              (char _seg*)(*(&directvideo-1)) );
  44. }
  45.  
  46. // END DVCONIO.CPP
  47. 
  48.