各位大虾,我想写一个dll,里面想用mfc的CRecordSet,可是我只要一把afxdb.h包进来,编译就报如下错d:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
Error executing cl.exe.一下是stdafx.h// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//#if !defined(AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_)
#define AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers#include <windows.h>
#include <afxdb.h>
// TODO: reference additional headers your program requires here//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_)
这是什么原因呀,请各位大虾帮忙解释一下,本人第一次写dll可能问题有点
浅,请各位高手指点,谢谢!!
Error executing cl.exe.一下是stdafx.h// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//#if !defined(AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_)
#define AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers#include <windows.h>
#include <afxdb.h>
// TODO: reference additional headers your program requires here//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_)
这是什么原因呀,请各位大虾帮忙解释一下,本人第一次写dll可能问题有点
浅,请各位高手指点,谢谢!!
解决方案 »
- MFC生成的主菜单怎么去了。还有如图是建立的哪项工程?
- 字符串转换为时间
- 请帮忙测试:Sleep 和 WaitForSingleObject的返回时间??谢谢!
- CRecordset.open一个超长的sql出错
- 如何把Hbitmap转换成IPicture?
- 问一网络设计思路的问题(回答有分)
- CString::Find() 问题。如何从一个html..<input>语句中查出"name"的来!谢谢!!
- 急!为什么用BitBlt显示不出来图象?
- 请问哪里有realserver8.0下载???
- 为什么我的vc6每次用f5都说一大堆文件没编译或不存在而我刚刚编译过
- 怎样解析网页中文章的标题和正文?
- 如何在directx中创建一个文本输入框,sos
// or project specific include files that are used frequently, but
// are changed infrequently
//#if !defined(AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_)
#define AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000#include <afxdb.h>
// Insert your headers here
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers#include <windows.h>// TODO: reference additional headers your program requires here//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__9E7FD2D9_F268_434C_A1B8_E27E7872C437__INCLUDED_)