构建传统 Turbo C++代码
我希望恢复一些旧的 C++ 代码,这些代码是在 Turbo C++ 中为 DOS 开发的。这是一个基于控制台的文字游戏。
这个应用程序大量使用了 conio.h - Turbo C 特定的函数(我认为)gotoxy()、window() 等。
我发现 Turbo C++ 编译器不再提供下载。 Embarcardero/CodeGear/Borland 似乎已将其从其网站上完全删除。
我需要根据旧应用程序拼凑出一个新原型;大多数功能都存在于旧应用程序中,并且需要重写(使用像 ncurses 这样提供类似功能的库)。我计划稍后在演示之后将应用程序移植到现代编译器。
你建议我如何去做这件事?
I am looking to revive some old C++ code, developed in Turbo C++ for DOS. It's a console-based text game.
This app makes heavy use of conio.h - the Turbo C-specific functions (I think) gotoxy(), window() and the like.
I find that Turbo C++ compiler is no longer available for download. Embarcardero/CodeGear/Borland seem to have removed it completely from their sites.
I need to hack together a new prototype based on the legacy app; most of the functionality is present in the old app and would be too much to rewrite (using a library like ncurses which offers similar functionality). I plan to port the application only later, after a demo, to a modern compiler.
How would you suggest I go about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有人为开源编译器编写了该文件的副本 MinGW/Dev-C++ 的 Borland 风格 CONIO 实现。,可能值得一看。
Someone has written a copy of that file for an open source compiler Borland-style CONIO implementation for MinGW/Dev-C++., might be worth taking a look at.
我能够使用 C++ Builder 试用版构建该应用程序。它不
不过我必须创建一个新的项目文件。
C++ Builder 中仍然支持 conio.h。
I was able to build the app using C++ Builder trial edition. It does not
I had to make a new project file though.
There is still support for conio.h in C++ Builder.
您可能需要查找 ncurses 才能获得此功能。
You will probably need to look up ncurses to get this functionality.