Connecting Tech Pros Worldwide Forums | Help | Site Map

Graphics in Turbo C

Member
 
Join Date: Jul 2007
Location: The Earth
Posts: 115
#1: Jul 18 '07
I seem to be having a problem with Turbo C.

My system Specs:

celeron processor
20 GB HDD
100 MB RAM
OS = XP Home

I basically have a Turbo C compiler and I wanted to learn graphics.
I was surfing the net and I went to this site and I compiled the following code :

Expand|Select|Wrap|Line Numbers
  1. /*  simple.c
  2.     example 1.0
  3. */
  4. #include<graphics.h>
  5. #include<conio.h>
  6.  
  7. void main()
  8. {
  9.     int gd=DETECT, gm;
  10.  
  11.     initgraph(&gd, &gm, "c:\\turboc3\\bgi " );
  12.     circle(200,100,150);
  13.  
  14.     getch();
  15.     closegraph();
  16. }
  17.  
When I try to run it, all I get is a blank screen and it does not work.

Why?

The bgi dir is correct. I see no reason why it is not working.

Can anyone help?

Newbie
 
Join Date: Jul 2007
Posts: 1
#2: Jul 20 '07

re: Graphics in Turbo C


you appliaction can't run in winxp,if u want running it u must install DOS!
Reply