兼容Windows 95的C++程序 [英] C++ program compatible with Windows 95

查看:46
本文介绍了兼容Windows 95的C++程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我错误地认为我用 VS 2012 编写的 C++ 程序可以在运行 Windows 95 的计算机上运行.

I made the mistake of thinking that the C++ program that I coded with VS 2012 would work on a computer running windows 95.

现在我知道为什么它不起作用了.所以我查看了其他免费的编译器,例如 Dev-C++ 5,但在浏览了 Dev-C++ 网站的论坛后,它似乎也无法用于制作 Windows 95 兼容的应用程序.

Now I know why it doesn't work. So I took a look at other free compilers such as Dev-C++ 5 but after going through the forum of the Dev-C++ web site, it seems that it also can't be used make Windows 95 compatible applications.

所以我的问题是,我应该使用什么来编译我的 C++ 应用程序才能使其在 Windows 95 以及从 95 到 8 的所有其他版本的 Windows 上运行?

So my question is, what should I use to compile my C++ application in order for it to work on Windows 95 and all the other versions of windows from 95 to 8?

在没有合适的答案之后.

Edit : After no suitable answer.

我不介意为不同的 Windows 版本构建不同的 .exe.

I don't mind having to build a different .exe for different Windows versions.

问题已解决!

感谢所有参与讨论的人.

Thanks to everyone who help in this discussion.

使用 MingW 和代码块,我只用了 20 分钟就将代码调整到 Win 95 友好的库中……还有一整天在 VM 中安装 Win 95 哈哈.

Using MingW and code blocks it took me only 20 minutes to adapt the code to Win 95 friendly libraries... and a full day to install Win 95 in a VM lol.

推荐答案

首先,为什么是 Windows 95?好吧,无论如何,您可以为此使用 MinGW.Code::Blocks 是我最喜欢的带有 MinGW 的 IDE.您可以从此处下载.

First of all, why Windows 95? Well, anyway, you can use MinGW for that. Code::Blocks is my favorite IDE that's got MinGW. You can download it from here.

这篇关于兼容Windows 95的C++程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆