TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Keith H. March 70541,1413
from: Bruce MacKenzie 71725,376
date: 1991-08-12 18:19:40
subject: #11687-Help with C compiler

#: 11733 S3/Languages
    12-Aug-91  18:19:40
Sb: #11687-Help with C compiler
Fm: Bruce MacKenzie 71725,376
To: Keith H. March 70541,1413

Keith,
     Here's my standard code for opening up a graphics window from within a C
program:

 #define PATH fileno(wout)

 main() {
      FILE *win,*wout;

      win=fopen("/w","r+");
      wout=fdopen(fileno(win),"w");
      DWSet(PATH,8,0,0,40,24,15,0,0);
      Select(PATH);
 }

This should get you up and going.  If you have any other questions about the
graphics library give a yell.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.