如何让Graphics.h在Windows 8上运行 [英] How to get Graphics.h to work on windows 8
问题描述
在你让我使用更现代的编译器之前我别无选择,只能使用Turbo C ++ 3.0因为印度的教育板。这是我的12年级项目因此使用我的普通IDE(Dev C ++)不是选项。我需要让graphics.h函数工作,但我一直收到错误,说明BGI错误:图形没有初始化(使用initgraph)文件的路径是正确的,我有所有必需的文件,我听说BGI不会在64位操作系统上运行这是真的吗?是否有另一种显示基本图形的方法我只对它们使用TC 3.0开放替代方案。请帮助我。
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.
推荐答案
你可以试试 WinBGIm [ ^ ]。有点过时,但提供了源代码,因此您可以根据您的(系统)需求进行调整。
您也可以使用DosBox
,请参阅安装Turbo C on Windows 7 64位~DosBox [ ^ ]。
You may try WinBGIm[^]. Bit dated, but source code is provided, hence you might adapt it to your (system) needs.
You may also useDosBox
, see "Installing Turbo C on Windows 7 64 bit ~ DosBox"[^].
我只需要重新安装TC3的模拟版本,但我不建议使用它,因为它是背后的痛苦。
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.
这篇关于如何让Graphics.h在Windows 8上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!