MD> Yeah, that graphics.lib is the main problemo. Now I've got an
MD> even bigger problem, there's a calc program which works fine,
MD> it's CALC.H, CALC.CPP, and CALC_APP.CPP. Then a project file,
MD> CALC_APP.PRJ which inckudes the 2 .CPP files. When I run the
MD> main .EXE file, I get a BGI error. Graphics not initialized.
MD> Use 'initgraph'. But I did! And graphics.lib is selected!
I haven't seen the project but i give it a try...
The initgraph looks like this:
void far initgraph(int far *graphdriver,int far *graphmode, char far
*pathtodriver);
The pathtodriver parm is very imported. It's often this which is wrong.
The best way to do it is to write whole the path to the driver.
pathtodriver = "c:\program\tc\bgi"; //or where else you have your egavga.bgi
file.
If it still doesn't work, write a new mail, and I will try to help you again.
//Anders
---
---------------
* Origin: (2:203/512.13)
|