home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Boston 2
/
boston-2.iso
/
DOS
/
PROGRAM
/
C
/
WINCLIP
/
EXAM38.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-01
|
620b
|
23 lines
#include "window.h"
#include <stdio.h>
#define NORM CREATE_VIDEO_ATTRIBUTE(black,white)
WPOINTER w;
FILE *outfile;
char *filename = "wintext";
char *filename2 = "wintext2";
main()
{
int i;
WindowInitializeSystem();
WindowSaveInitial(0);
w = WindowInitialize(BORDER,1,1,20,10,NORM,NORM,SINGLEBOX);
WindowOpen(w);
WindowDisplay(w,1,NOEFFECT);
for (i=1;i<=10;i++)
WindowWriteString(w,"Hello World!!",i,1);
GET_KEY();
WindowWriteTextToFile(w,filename,1); /* use newlines */
WindowWriteTextToFile(w,filename2,0); /* no newlines */
}