home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
WINCLIP
/
EXAM28.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-01
|
599b
|
19 lines
#include "window.h"
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
WPOINTER w;
char buf[27] = {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 */
WindowReadCharAndAttr(w,buf,1,1,13); /* Read character/attributes */
GET_KEY();
WindowWriteCharAndAttr(w,buf,2,1,13); /* Write what we have read */
}