在控制台使用mfc

来源:互联网 发布:sql 表的别名 编辑:程序博客网 时间:2024/05/17 23:52
现在控制台程序用得很少了,但是做练习的时候,可能还是会选择用console程序,因为它结构简单。如果要在console程序中使用mfc类要怎么做呢,其它只要做以下两步就行了。
1.加入头文件
#include<afx.h>
#include<afxwin.h>
2.在工程设置中选择MFC库。
Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version
好了现在你就可以使用mfc类库了,是不是很方便呢。
0 0
原创粉丝点击