Can an MFC application run on a non-Windows operating system?

I need to create a dialog based GUI using VC ++ / MFC. I am sure it will work with Windows, but will it work with Linux / Unix or other OSs other than windows? Is QT an Alternative Good Option?

+6
mfc
source share
2 answers

An application written using the MFC classes will most likely not work on Linux or Unix source code. You will need to override most MFCs using X Windows. Qt is a good alternative when the source code should be used on multiple platforms, for example. Windows and Linux.

If you just want to run the compiled .exe on Linux, there is the Wine project on Linux, which allows you to run the application using the "translation level" that works on Linux.

+3
source share

No, MFC is for Windows development. I have vague memory about the MFC version for Solaris or about 12-15 years ago, but I can not find information about it now. However, there are two other commercial solutions that should be useful for porting MFC applications to unix:

Mainsoft for UNIX and Linux
Bristol Wind / U (I don’t know if it exists anymore, although since Bristol was bought by HP several years ago).

In general, if you need an application to run on Windows and Unix / Linux, I would suggest looking at QT, as this is usually recommended for this.

+2
source share

All Articles