Sign in to follow this  
dk32321

c++ question

Recommended Posts

dk32321    142
I got this c++ question, that i am having trouble on. Somehow i got the old turbo c++ compiler that has graphics.h to run on my winxp. When i make programs that go into graphics mode they work fine on my computer, but they dont even access the graphics mode when i try to test them on other windows xp machines. If somebody could help me with this problem i would appreciate it.

Share this post


Link to post
Share on other sites
yadango    567
do you get an error like this one: "BGI Error: Graphics not initalized (use 'initgraph') when it tries to access the DOS graphics? if so, it's because the executable needs the files in the TurboC's BGI directory (all those CHR and BGI files). so when you call initgraph, save the directory string and copy over the extra files as well. to test, rename the BGI directory on your dev machine and you'll see it'll stop working even on your dev machine.

question: why are you using Borland's old DOS graphics library? it's quite outdated (though i was able to test because I own BC++ 3.1 - 5.0 and have them currently installed). i think this is the first time i've looked at BGI since over a decade!

[Edited by - yadango on August 19, 2006 2:10:12 AM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this