PDA

View Full Version : graphics in c++


fariha
08-02-2003, 04:26 AM
i try to create graphics in c++, i am using the turbo c editor, at compile time i get 0 errors but when i run the program, no graphics r displayed, why? and how can i fix this problem?
this is the exact code of the program:

#include<stdio.h>
#include<conio.h>
#include<iostream.h>
#include<graphics.h>
void main(void)
{
int a=DETECT,b;
initgraph(&a,&b,"C:\\Turbo\\BGI");
line(200,300,200,500);
closegraph();
getch();
}

ERRORS = ZERO
OUTPUT = BLANK

coldflame
08-22-2003, 05:12 PM
Try puting graphics in same folder as source. I had same problem with 3d textures using open gl.