[comp.graphics] BGI files from any directory

pmcauley@vax1.tcd.ie (PAUL M. MC AULEY) (04/27/89)

Quicke (sorry if it's an old question):
	How do you incorporate .bgi files into Turbo-C programs?
If I run a program using the appropriate graphics in the same directory
as the files,fine, BUT if I run it from elsewhere EVEN if the relevant 
directory is on my path I get a bgi error about initgraph. I'd prefer to just
be able to leave the files in a directory on my path and use them whenever
necessary (changing directories mid-program could be one method but it produces
limits.Thanks.

-------------------------------------------------------------------------------
Paul Mc Auley , Mathematical Sciences, Trinity College Dublin, Ireland.
--------------------------+----------------------------------------------------
AKA pmcauley@maths.tcd.ie | "My what big teeth you have Grandma."
AKA PMCAULEY@vax1.tcd.ie  | "All the the better for eating steak with,
AKA mtsu0104@icl.tcd.ie   |  Now put my dentures BACK in the glass,please."
--------------------------+----------------------------------------------------

mike@relgyro.stanford.edu (Mike Macgirvin) (04/28/89)

In article <40434@vax1.tcd.ie> pmcauley@vax1.tcd.ie (PAUL M. MC AULEY) writes:
>Quicke (sorry if it's an old question):
>	How do you incorporate .bgi files into Turbo-C programs?

	This is a three stage process:

	1. Convert the '.BGI' to '.OBJ' using the BGI2OBJ.EXE program.
	2. Register the bgi driver in your c program using
	   'registerbgidriver()' or 'registerbgifont()' functions.
	3. Link the converted '.OBJ' files in with your program.

mike@relgyro.stanford.edu (36.64.0.50)