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?
相关问题
- Create CFrameWnd gives first-chance exceptions--wh
- Underline is drawn outside of rectangle reported b
- Bold labels in MFC
- Why is my MFC application hanging after interactin
- Sort files according to creation date?
相关文章
- MFC CListView响应HDN_ITEMCHANGING后改变列宽无法自动显示隐藏水平滚动条
- How can I handle the Return key in a CEdit control
- How can I create a guid in MFC
- Visual Studio unable to recognise my MFC library f
- How to get WM_POWERBROADCAST message in CWinApp?
- How to remove memory leaks between OpenCV 1.1 and
- Sending the message Ctrl+Alt+Del from my applicati
- How to display Red Squiggly Lines in CRichEditCtrl
No, MFC is for Windows development. I have some vague memory of there being a version of MFC for Solaris or something about 12-15 years ago, but I can't find any information about that now. There is however two other commercial solutions that are supposed to be useful for porting MFC apps to unix:
Mainsoft for UNIX and Linux
Bristol Wind/U (I don't know if this exists anymore though since Bristol was bought by HP a few years ago).
All in all though, if you need an app to run on both Windows and Unix/Linux I'd suggest looking at QT since that's what usually gets recommended for that.
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.
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.