home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1995 September / PCPRO2_995.ISO / virtek / dos / libex / libex141.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-16  |  410 b   |  19 lines

  1.             // Example: 141 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>
  4. short  mode, result;
  5. short  main(void)
  6. {
  7.   mode = 0; // Mode 0. 40*25 text mode.
  8.   result = dddSetMode(mode);
  9.   if (result==1)
  10.   {
  11.     printf("Success. You are now looking at display mode %d.\n",mode);
  12.   }
  13.   else
  14.   {
  15.     puts("Failed to set the required display mode.");
  16.   }
  17.   return 0;
  18. }
  19.