TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MATTHEW DUHART
from: ANDERS JOHANSSON
date: 1997-08-11 10:50:00
subject: Problem with initgraph

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.