BGI Error:Graphics not initialised(use initgraph)...in DOSBOX...Win 7

user1943533 picture user1943533 · Jul 16, 2013 · Viewed 49k times · Source

I gave the location of bgi folder in my C drive as below:

initgraph(&gd,&gm,"C:\\TurboC++\\Disk\\TurboC3\\BGI");

The program compiles without any error but while running nothing appears...

When I press Alt+F5 I found this error. How to resolve this?

Answer

Theja picture Theja · Sep 9, 2013

I hope this helps:

Now, as we know the BGI folder is usually in the following path,

C:\TurboC++\disk\TurboC3\BGI

BGI is inside the folder "TurboC3" and NOT "TC".

So the code you need to put in your program is as follows,

initgraph(&gd, &gm, "C:\\TurboC3\\BGI");