#include <afx.h>
来源:互联网 发布:乐乎lofter漫画肌肉男 编辑:程序博客网 时间:2024/05/22 03:37
最近下载了一个程序,但是程序运行的时候出现了如下错误:
fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
最后发现头文件中多了#include <afx.h>。
经查询,网上对其解释如下:
一些定义与设置,为MFC提供最基本支持,将各种松散的东西组织起来,同时为MFC 类库的后续建立 提供方便。一个最简单的 MFC 只需 afxwin.h 即可,而afxwin.h 开始就是 #include <afx.h>具体来说, afx.h 内容如下:1. 编译选项设置,还包括warning等的预设值2. 一些头文件:afxver_.h, C相关头文件,一些Win32库, 包库MFC库3. 一些基本类声明,包括CArchieve, CArchieveException, CDumpContext, CException, CFile, CFileException, CFileFind, CMemFile, CMemoryException , CNotSupportedException, CObject, CStdioFile4 一些基本类型, 常量, 全局变量,函数,以及一些方便比较,转换的东东, 诊断函数支持, 还包括一些方便诊断的宏(由于MFC的严谨性, afx.h 中提供了大量方便其他MFC 头文件 的宏等)
参考资料:
http://zhidao.baidu.com/question/90547753.html
http://hi.baidu.com/showland/item/05aa70d8147548e6b3f777c3
- #include <afx.h>
- #include <afx.h>头文件的作用
- c++关于#include <afx.h>头文件错误问题
- afx.h
- AFX.H
- afx.h
- afx.h
- afx.h
- afx.h是什么,afx是什么意思
- afx.h与window.h
- vc/atlmfc/include/afx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT
- 1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(24) : fatal error C1189: #err
- 1>c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(24) : fatal error C1189: #err
- vc/atlmfc/include/afx.h(24) : fatal error C1189: #error : Building MFC application with /MD[d] (CRT
- VS2008 1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(24) : fatal erro
- afx.h(24) : fatal error
- stdafx.h与Afx.h了解
- stdafx.h与Afx.h了解
- Centos 5.3 安装(Tomcat 6.0.20)
- MSSQL 数据库语句原来是区分大小写的啊
- discuz安装提示数据库出错,请确定数据库用户名,密码
- Centos 5.3(安装JDK)
- 回调函数的使用
- #include <afx.h>
- C# Linq简介
- https应用:避免HttpClient的”javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated”异常
- C#对XML、JSON等格式的解析
- C# Dictionary使用
- 1000之内的完数
- Unity3D C# 线程下载图片
- 移动web app开发必备
- 别人的面试题目