Free2Code
 
Time: 2008-11-21, 08:32pm
GRAPHICS: BGI problem pls help...
Subject: GRAPHICS: BGI problem pls help...  ·  Posted: 2006-12-05, 02:27am
Rank: ? (2)
Member #: 29319
ei guys i'm a newbie in C++ and i
want to include some graphics in my work but i have a problem...
in run-time it says:

BGI error: graphics is not initialized (use 'initgraph')

here's what i've done and i dont see any problem on this:

#include <graphics.h>
#include <conio.h>

void main()
{
clrscr();
int driver = DETECT, mode = 0;
initgraph(&driver,&mode,"";

line(20,20,50,50);
getch();
closegraph();
return;
}

pls help guysz...

 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons