如何在 DOSBOX 中编译使用 Graphics.h 的代码?
我编写了一段代码,在这段代码中我使用graphics.h,在borland c++或visual中我无法打开并运行它,现在我想运行这段代码,并且我有DOSBOX 0.72,如何用DOSBOX打开这段代码? 我的Windows是7 32位
i write a code and in this code i use graphics.h ,in borland c++ or visual I can't open and run it, now i want run this code ,and i have DOSBOX 0.72 , how open this code with DOSBOX?
my windows is 7 32bit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我看到您仍在尝试编写和编译使用旧版和不受支持的库的代码
...至少您现在已经发现您无法在 Windows 7 中本地执行此操作,并且已经安装了 DOS 模拟器。现在,您需要找到并下载将在该环境中运行的编译器。
由于
graphics.h
是一个专有的 Borland 库,我建议您使用他们的编译器之一。现在拥有 Borland 的公司拥有一个在线博物馆,展示他们的老式产品,可以免费下载。 获取 Turbo C 2.01 或 Turbo C++ 1.01,将其加载到您的 DOSBOX 上,并对您发现的一小段计算机历史感到惊叹。,Turbo C 3.0 可从此处在线获取,但我不确定这是否已发布到公共领域。我无法想象有人会真正关心,但从法律上讲,你只能靠自己了。
但说真的,为什么不免费下载 Visual Studio C++ 2010 Express微软并使用现代编译器?当然,您不能使用
graphics.h
,但在过去 25 年多的时间里,计算机图形技术取得了巨大的发展。现代 IDE 将比旧的 Borland 编译器更容易使用,而且您投入的时间实际上是值得的。I see you're still trying to write and compile code that uses legacy and unsupported libraries...
At least you've discovered now that you aren't going to be able to do this natively in Windows 7, and have installed a DOS emulator. Now, you'll need to find and download a compiler that will run in that environment.
Since
graphics.h
is a proprietary Borland library, I recommend you use one of their compilers. The company who now owns Borland hosts an online museum of their vintage products that are free for download. Grab a copy of Turbo C 2.01 or Turbo C++ 1.01, load it on your DOSBOX, and marvel at the little piece of computer history you've unearthed.Also, Turbo C 3.0 is available online from here, but I'm not sure this has been released to the public domain. I can't imagine anyone would really care, but legally and all, you're on your own.
But seriously, why not download Visual Studio C++ 2010 Express free from Microsoft and use a modern compiler instead? Sure you can't use
graphics.h
, but there have been a significant amount of developments made in computer graphics technology in the past 25+ years. A modern IDE will be much easier to use than the old Borland compilers, and the time you invest will actually be worth something.可以下载并安装borland c++ 3.11编译器并使用graphic.h库(我4年前使用它)。
我认为这个编译器没有在 Win 7 中运行,但可以尝试一下。
您可以使用 Virtual Box,并安装 Win XP(borland c++ 3.1 100% 在 WinXP 中工作)。
May be download and install borland c++ 3.11 compiler and use graphic.h library (i'm use it 4 years ago).
I think that this compiler isn't ran in Win 7, but may be try.
You can use Virtual Box, with installing Win XP (borland c++ 3.1 100% work in WinXP).
在 Windows 7 中运行 Turbo C++ 3.0 的完整解决方案只需从设备管理器中禁用计算机的图形驱动程序并像 Windows Xp 一样使用。
它将全屏运行turbo c++以及在windows 7中运行图形程序
The complete solution of running turbo C++ 3.0 in windows 7 is just disable graphics driver of your computer from device manager and use like windows Xp.
It will run turbo c++ in full screen as well as run graphics program in windows 7