Hi...
I'd written a small program for snake game. It works well under dos prompt.
But when i run the .exe file in the windows mode its not working at all.
It displays that graphics not initialised. Can anyone help me how to over come this problem?
Thanks in advance
Hi,
u didnt mention the compiler u have used.
one method of initialising the graphics is
firstly open options->linker-> libraries.turn on the graphics library.
#include<graphics.h>/*include this header*/
int gd=DETECT,gm;
initgraph(&gd,&gm,"path");
/*if ur compiler is in C drive,path is "C:\TURBOC30\bgi"