MFC应用程序可以在Windows以外的操作系统上运行吗? [英] Can MFC application run on operating system other than windows?

查看:314
本文介绍了MFC应用程序可以在Windows以外的操作系统上运行吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用VC ++/MFC创建一个基于对话框的GUI.我确定它可以在Windows操作系统上使用,但是可以在Linux/Unix或Windows以外的其他操作系统上使用吗? QT是替代的好选择吗?

I need to create a dialog based GUI using VC++/MFC. I am sure it will work with windows OS, but will it work on Linux/Unix or other OS other than windows? Is QT an alternative good option?

推荐答案

使用MFC类编写的应用程序很可能无法在Linux或Unix上运行(按源代码).您将不得不使用X Windows重新实现大多数MFC.当必须在多个平台上使用源代码时,例如Qt是一个很好的选择. Windows和Linux.

An application written using MFC classes would most probably not work on Linux or Unix, sourcecode-wise. You would have to reimplement most of MFC using X Windows. Qt is a good alternative when the sourcecode has to be used on multiple platforms, e.g. Windows and Linux.

如果您只想在Linux上运行已编译的.exe,则Linux上的Wine项目可让您使用在Linux上运行的翻译层"来运行应用程序.

If you just want to run a compiled .exe on Linux, there's the Wine project on Linux that lets you run the application using a "translation layer" that runs on Linux.

这篇关于MFC应用程序可以在Windows以外的操作系统上运行吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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