Turbo CPP 3.0 help

Status
Not open for further replies.

morpheusv6

Journeyman
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?
 
Status
Not open for further replies.
Top Bottom