Link to home
Start Free TrialLog in
Avatar of vmr_iitm
vmr_iitm

asked on

Turbo C++ 3.0 graphics

I have turbo C++ installed , but none of the graphics functions work, like initgraph.It gives linking errors.
Avatar of null_pointer
null_pointer

If u could give the error details and the code u are using

I think you are getting an error:

Graphics error: Device driver file not found (EGAVGA.BGI)
Press any key to halt:

If it is so then follo this.
In initgraph() the last parameter is
"char far * pathtodriver"
generally we use "" in that field. Use the complete
path like "C:\\TC\\BGI". Don't forget to use double \\
or else copy your *.BGI files in directory from where you run your program.
ASKER CERTIFIED SOLUTION
Avatar of kartik
kartik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vmr_iitm

ASKER

It was correct