现在控制台程序用得很少了,但是做练习的时候,可能还是会选择用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类库了,是不是很方便呢。
1.加入头文件
#include<afx.h>
#include<afxwin.h>
2.在工程设置中选择MFC库。
Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version
好了现在你就可以使用mfc类库了,是不是很方便呢。