stdafx.h

来自「这是VCF框架的代码」· C头文件 代码 · 共 89 行

H
89
字号
// 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__00CD78A4_68EA_427D_A89E_271068B90A13__INCLUDED_)#define AFX_STDAFX_H__00CD78A4_68EA_427D_A89E_271068B90A13__INCLUDED_#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers#pragma warning (disable:4786)#include <afxwin.h>         // MFC core and standard components#include <afxdisp.h>#include <atlbase.h>//You may derive a class from CComModule and use it if you want to override//something, but do not change the name of _Moduleextern CComModule _Module;#include <atlcom.h>// Developer Studio Object Model#include <ObjModel\addauto.h>#include <ObjModel\appdefs.h>#include <ObjModel\appauto.h>#include <ObjModel\blddefs.h>#include <ObjModel\bldauto.h>#include <ObjModel\textdefs.h>#include <ObjModel\textauto.h>#include <ObjModel\dbgdefs.h>#include <ObjModel\dbgauto.h>#include <comdef.h>//VCF Stuff/*#include "ApplicationKit.h"#include "VCFBuilderUI.h"#include "MainUIPanel.h"*//////////////////////////////////////////////////////////////////////////////// Debugging support// Use VERIFY_OK around all calls to the Developer Studio objects which//  you expect to return S_OK.// In DEBUG builds of your add-in, VERIFY_OK displays an ASSERT dialog box//  if the expression returns an HRESULT other than S_OK.  If the HRESULT//  is a success code, the ASSERT box will display that HRESULT.  If it//  is a failure code, the ASSERT box will display that HRESULT plus the//  error description string provided by the object which raised the error.// In RETAIL builds of your add-in, VERIFY_OK just evaluates the expression//  and ignores the returned HRESULT.#ifdef _DEBUGvoid GetLastErrorDescription(CComBSTR& bstr);		// Defined in VCFBuilder.cpp#define VERIFY_OK(f) \	{ \		HRESULT hr = (f); \		if (hr != S_OK) \		{ \			if (FAILED(hr)) \			{ \				CComBSTR bstr; \				GetLastErrorDescription(bstr); \				_RPTF2(_CRT_ASSERT, "Object call returned %lx\n\n%S", hr, (BSTR) bstr); \			} \			else \				_RPTF1(_CRT_ASSERT, "Object call returned %lx", hr); \		} \	}#else //_DEBUG#define VERIFY_OK(f) (f);#endif //_DEBUG//{{AFX_INSERT_LOCATION}}// Microsoft Visual C++ will insert additional declarations immediately before the previous line.#endif // !defined(AFX_STDAFX_H__00CD78A4_68EA_427D_A89E_271068B90A13__INCLUDED)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?