DIGIT-ARC read-only archive · snapshot: July 23, 2026

Turbo CPP 3.0 help

3 posts · originally from https://geek.digit.in/community/threads/turbo-cpp-3-0-help.50749/

morpheusv6
morpheusv6 Original post #1
Feb 26, 2007 at 6:18 PM
I recently installed TCpp 3.0 on my system.
I am intrested in doing a grpahics oriented project in C. But I am unable to use graphics.h. initgraph() does not seem to function!

After typing the following code:

#include<conio.h>
#include<graphics.h>
int main()
{ int gd=DETECT,gm;
initgrapgh(&gd,&gm,"F:/TC/BGI");
circle(200,200,30);
getch();
closegraph();
return 0;
}
My program hangs after getting a black screen. Even the .exe file version of the program hangs.

The path is correct and so is the program. It works in the system in the college and in my friend's house.

My system config is: AMD Athlon 64 3500+, Gigabyte mobo, 1 GB DDR 400 RAM, Palit Nvidia 7600GT Graphics card. Windows XP Pro SP2.

I tried even removing the graphics card and executing the program but to no avail.

The detectdriver() example in the help section reports tht I have a VGA display card.

Please help me to correct this problem.

Is there any other compiler which supports graphics.h or alternative graphic options?
shashank4u
Feb 26, 2007 at 6:30 PM
see here..
*www.onecore.net/turbo-c-graphics-programming.htm
rep me if u like it.
shantanu
Feb 26, 2007 at 6:47 PM
you are posting two threads why??? REPORTED