Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c

dosbox

bgi

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?

like image 718
user1943533 Avatar asked Dec 30 '25 18:12

user1943533


1 Answers

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");
like image 152
Theja Avatar answered Jan 02 '26 09:01

Theja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!