简体   繁体   English

将MFC添加到项目?

[英]Add mfc to a project?

I have already started a project and would like to add forms to it with MFC. 我已经开始一个项目,并想使用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). 我尝试将其设置为使用mfc,但仍然不允许我添加mfc类(它说这不是mfc项目)。

Also is there any GUI library that works sorta like .net? 还有没有可以像.net这样工作的GUI库? Maybe it is because I haven't used MFC too much but I don't care for how it does events. 也许是因为我没有太多使用MFC,但我并不关心它如何处理事件。

If it isn't too late then you should seriously consider using Qt . 如果还不算太晚,那么您应该认真考虑使用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. 您将获得一个丰富的UI,可以在运行时添加/删除事件(通过Qt信号和插槽机制 ),以及将为Windows,Linux和Mac构建的代码。 I cannot recommend this framework highly enough (and I have used MFC since 1994 and WTL since 2001.) 我不能对这个框架提出足够高的建议(我从1994年开始使用MFC,从2001年开始使用WTL。)

You can get a Qt Visual Studio plugin or even consider their superb IDE Qt Creator . 您可以获取Qt Visual Studio插件,甚至可以考虑使用其出色的IDE Qt Creator

You could try WTL . 您可以尝试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. 有点像MFC,但是大多数工作都是在编译时完成的,因此您不必在应用程序中附带大型DLL。 I did most of my learning at CodeProject . 我在CodeProject上完成了大部分学习。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM