Newsgroups: comp.os.msdos.djgpp From: Abraham John Kannankeril Subject: Graphics not working Sender: news AT serval DOT net DOT wsu DOT edu (News) Message-ID: <33287A5C.B9A@wsunix.wsu.edu> Date: Thu, 13 Mar 1997 22:06:20 GMT Reply-To: joji AT wsunix DOT wsu DOT edu Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Organization: Washington State University Lines: 79 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp We downloaded GRX20.zip and followed the following instructions. After you un-zip the GRX archive you need to do the following things to use it: Set two environment variables: 1) SET GRX20DRV= gw gh nc 2) SET GRXFONT= Available drivers are: stdvga stdega et4000 cl5426 mach64 ati28800 VESA After setting these you may run "bin/modetest" to see what modes you have. To compile and link a program you need to make sure that the compiler "sees" the "include" and "lib" directories of the GRX20 package. Either use the -I and -L compiler switches with these directories or copy the files from these dirs to a standard place. The computer we are working on shows the setting as adapter type -Mach64 monitor- SONY Multiscan 17sf desktop area - 1024 x 768 so accordingly we set the environment variables. Then we downloaded BCC2GRX and followed the instructions given in README and tried the following program. #include #include #include #include #include #include int main() { int gdriver=DETECT,gmode, errorcode; int midx,midy; initgraph(&gdriver,&gmode,"" ); errorcode=graphresult(); if (errorcode!=grOK) { cout<<"Graphics function error: "<