home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
WINCLIP
/
EXAM26.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-01
|
587b
|
19 lines
#include "window.h"
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
WPOINTER w;
char buf[14] = {0}; /* Null all elements of buf */
main()
{
int i;
WindowInitializeSystem();
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
WindowOpen(w);
WindowDisplay(w,1,NOEFFECT);
WindowWriteString(w,"Hello World!!",1,1);/* Write String */
WindowReadCharacters(w,buf,1,1,13); /* Read characters */
GET_KEY();
WindowWriteString(w,buf,2,1); /* Write what we have read */
}