首页 > 编程语言 > 详细

Visual Studio 在控制台应用中使用MFC

时间:2016-11-22 17:50:45      阅读:285      评论:0      收藏:0      [点我收藏+]

 

 

1:Configuration Properties ->Use of MFC ->Use MFC in a Shared DLL

2.将如下代码粘贴到stdafx.h文件中

 

#include <afx.h>

#include <afxwin.h> // MFC core and standard components

#include <afxext.h> // MFC extensions

#ifndef _AFX_NO_OLE_SUPPORT

#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls

#endif

#ifndef _AFX_NO_AFXCMN_SUPPORT

#include <afxcmn.h> // MFC support for Windows Common Controls

#endif // _AFX_NO_AFXCMN_SUPPORT

Visual Studio 在控制台应用中使用MFC

原文:http://www.cnblogs.com/yizhichun/p/6089823.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!