Add mfc to a project?

随声附和 提交于 2019-12-12 04:44:59

问题


I have already started a project and would like to add forms to it with MFC. How do you do this? I tried setting it to use mfc but it still doesn't allow me to add mfc classes(it says it isn't an mfc project).

Also is there any GUI library that works sorta like .net? Maybe it is because I haven't used MFC too much but I don't care for how it does events.


回答1:


If it isn't too late then you should seriously consider using Qt. You'll get a rich UI, the ability to add/remove events at runtime (through the Qt signals and slots mechanism) plus the code will build for Windows, Linux and the Mac. I cannot recommend this framework highly enough (and I have used MFC since 1994 and WTL since 2001.)

You can get a Qt Visual Studio plugin or even consider their superb IDE Qt Creator.




回答2:


You could try WTL. It's kind of like MFC, but most of the work is done at compile time, so you don't have to ship a big DLL with your app. I did most of my learning at CodeProject.



来源:https://stackoverflow.com/questions/1911570/add-mfc-to-a-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!