Click here to Skip to main content
15,889,484 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
when i run simple graphics program Borland c++ throw Error "BGI graphics not supported under windows"

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

      void main() {    int gd = DETECT, gm;

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

         circle(100, 100, 50);

        getch();    closegraph();

     }
Posted
Comments
Jochen Arndt 18-Jun-13 2:39am    
Your program is for (MS-) DOS (a real DOS, not the command shell of Windows).
Frans_55129 18-Jun-13 16:31pm    
Correct, this is right !
I also have used this kind of graphics in plain-DOS.

What do YOU think that error message means ? It means what you're trying to do, is not supported. That's not C++ at all, it's some weird library that is not standard, and not supported in 32bit windows programs.

Why would you learn to use Borland C++ in 2013 ? It sounds like a waste of time to me.
 
Share this answer
 
Comments
manthan11 18-Jun-13 2:49am    
i have 64bit windows 7,i want run graphics program in borland,give me properly answer,graphics program run in borland or not
Christian Graus 18-Jun-13 2:51am    
The error means what it says. If you want to build skills that are of no use in the real world, you can explore using Borland, but unless you can get it to use the Windows SDK and the libraries that windows uses (and I have no idea if you can), you won't be able to create graphics programs, not with graphics.h.
manthan11 18-Jun-13 3:07am    
error is "BGI graphics not supported under windows"
JackDingler 18-Jun-13 10:34am    
Right. Your error is that you're using windows.

If you must use an obsolete compiler and libraries, then use the proper obsolete environment.

Try DOSBox
http://www.dosbox.com/
manthan11 18-Jun-13 2:59am    
error is "BGI graphics not supported under windows"
bro don't be hesitate just download libbgi to your compiler
don't be worry about 2013 or 2014 just learn c++
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900