Click here to Skip to main content
15,891,936 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Before you ask me to use a more modern compiler I have no choice but to use Turbo C++ 3.0 because of the education board in India.This is for my 12th grade project therefore using my normal IDE(Dev C++) is not an option.I need to get the graphics.h functions working but I keep getting an error which says BGI error: Graphics not initialized (use initgraph) The path to the file is correct and I have all the required files I heard that BGI will not run on a 64bit OS Is this true? Is there another way to display basic graphics I am open to alternatives as long as they work with TC 3.0.Please help me out.
Posted
Updated 1-Oct-13 8:44am
v2

You may try WinBGIm[^]. Bit dated, but source code is provided, hence you might adapt it to your (system) needs.

You may also use DosBox, see "Installing Turbo C on Windows 7 64 bit ~ DosBox"[^].
 
Share this answer
 
v2
Comments
Member 10309493 1-Oct-13 15:04pm    
Thank you for the quick reply.I got Graphics.h working but I need to know if there are any alternatives to using graphics.h
Sergey Alexandrovich Kryukov 1-Oct-13 15:39pm    
Oh... Use anything but Graphics.h! Don't torture yourself and waste your time. This kind of learning is not so useful learning, however, it can teach you how not to write graphical interface, but where to learn hot to make good ones? :-)

But I don't know if you have something better, in terms of commercial products. Do you have any compilers for Win32?
Or can you switch to Linux, where everything is open-source and there are decent UI frameworks: GTK+, Qt, and more?

—SA
Member 10309493 1-Oct-13 15:45pm    
I don't really have an option right now as this is for my 12th grade project which is evaluated by an examiner from the government so I am FORCED to use turbo c++ 3.0 in a dos emulator :( I normally use dev C++ for all my projects and assignmets.
Sergey Alexandrovich Kryukov 1-Oct-13 17:33pm    
Then your alternatives are poor. You could also use direct video card access (its emulation), really useful exercise of instruction-set level (assembly) with C++, but I'm not sure it's in your interests. But would be more useful...
—SA
Sergey Alexandrovich Kryukov 1-Oct-13 15:35pm    
5ed, but... I'm really sorry of OP. Using very old technology for learning can be a good idea; it depends on that technology. But to be useful, it should be something reasonably good. This is, as I understand, all Borland BGI. It was used when there was virtually nothing else on the PC market, and I'm sure Borland people understood well how much of trash it was.
—SA
I just had to reinstall the emulated version of TC3 but I don't recommend ever using it as it is a pain in the backside.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900