home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / WINCLIP / EXAM28.C < prev    next >
C/C++ Source or Header  |  1993-12-01  |  599b  |  19 lines

  1.   #include "window.h"
  2.   #define NORM   CREATE_VIDEO_ATTRIBUTE(black,white)
  3.  
  4.   WPOINTER w;
  5.   char buf[27] = {0};      /* Null all elements of buf */
  6.  
  7.   main()
  8.   {
  9.     int i;
  10.     WindowInitializeSystem();
  11.     WindowSaveInitial(0);
  12.     w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
  13.     WindowOpen(w);
  14.     WindowDisplay(w,1,NOEFFECT);
  15.     WindowWriteString(w,"Hello World!!",1,1);/* Write String */
  16.     WindowReadCharAndAttr(w,buf,1,1,13);      /* Read character/attributes */
  17.     GET_KEY();
  18.     WindowWriteCharAndAttr(w,buf,2,1,13);     /* Write what we have read */
  19.   }