473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Graphics in Turbo C

114 100+
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?
Jul 18 '07 #1
1 1869
you appliaction can't run in winxp,if u want running it u must install DOS!
Jul 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Student | last post by:
Hi, I would like to use some simple graphics primitives (plot a point, a line, change colors, etc...) from visual C++, in C or C++ language. It is for illustrative purpose only and I find the...
9
by: Desi Haker | last post by:
Hi there, I am trying to compile free C code from internet using cl(MSVC 7.1). This program use graphics.h header file. Unfortunatly this file is not standard C file. So, can any one help to...
1
by: rchitra.r | last post by:
I just stared using c. i have turbo c and i got a program which i tried out. i was getting the graphics output. but when i copied turbo c from that system and put it in another the graphics is...
1
by: MC felon | last post by:
i work on turbo c++. maybe i should upgrade to the ultimate compiler in c++ (visual, maybe..) can anyone please direct me to the best compiler? i mean to work on graphics a lot, too.. if i get...
3
by: oormilarev | last post by:
Dear all, i am a beginner in c programming. i am trying my hand at simple graphics programs. On the linux platform the error message is that it cannot find the graphics.h file. And on the windows...
13
by: thaparian354 | last post by:
hi ! can any body plzzzzzzzzz help me how to make screensaver in c++ with gcc .
2
by: anupama127 | last post by:
I have Turbo C++ 4.5. I am unable to include graphics.h, dos.h etc. What should do?
3
by: birensubudhi | last post by:
hey guys it is easy to do programming in graphics in 16bit TURBO C compiler,but how to work in graphics in 32bit TCWIN4.5 compiler/MS VC+ +.
5
by: Aditi Jindal | last post by:
I m learning c++ anf graphics, I tried some graphic algorithims in microsoft visual c++ but it showed that it dont contain header file graphic.h. How can i do graphic programming in microsoft...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.