我在win api下面自己添加了一对文件
包括.cpp 和 .h
开始在,cpp里面没有加
#include "stdafx.h"
编译不了
而后别人指点了一下加了#include "stdafx.h",就可以了
不知道#include "stdafx.h" 用了起什么作用的呀?
包括.cpp 和 .h
开始在,cpp里面没有加
#include "stdafx.h"
编译不了
而后别人指点了一下加了#include "stdafx.h",就可以了
不知道#include "stdafx.h" 用了起什么作用的呀?
他有一个预编译得项,制定了stdafx的
// or project specific include files that are used frequently, but
// are changed infrequently
//#if !defined(AFX_STDAFX_H__CDA9CA9F_67F4_45F1_9959_F81723B4E60A__INCLUDED_)
#define AFX_STDAFX_H__CDA9CA9F_67F4_45F1_9959_F81723B4E60A__INCLUDED_#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
/**** Open H323 Start ****/
#include <ptlib.h>
/**** Open H323 End ****/
#endif // !defined(AFX_STDAFX_H__CDA9CA9F_67F4_45F1_9959_F81723B4E60A__INCLUDED_)
这里我找了一个 stdafx.h 文件,好象不同的stdafx.h,格式都差不多
可是我是不能够完全理解
那位能够指点我一下
最好能够分析一下
谢谢 谢谢