One method: append the driver to the end of your exe program (after the program has been compiled), then when your program starts up have it write that out to a file. I did something like that once and it worked. The last 4 bytes of the exe was an integer that represented the size of the file that was appended to the exe file, which allowed the program to know where in the exe file to find the file.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
just write a small program that will append egavga.bgi to the end of the .exe file. Then when the .exe file starts up have it copy that to the bin directory that your program will also probably have to create.
Or, another alternative is to use an install program, something like InstallShield, that will put all files in their proper places.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
I just remembered, there is a way to compile the BGI drivers into object code which then can be linked directly into your .EXE file. That's how I've done exactly what you're attempting.
I forgot how to do it (it's been years) but if you have the manuals, check in there. Otherwise try searching for BGI+BORLAND+OBJECT+FILE see what turns up.
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944