STDAFX.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- // stdafx.h : include file for standard system include files,
- // or project specific include files that are used frequently, but
- // are changed infrequently
- //
- // Copyright (C) 1992-1998 Microsoft Corporation
- // All rights reserved.
- #if !defined(AFX_STDAFX_H__17A2229F_431B_11D0_B88F_00C04FD7A0F0__INCLUDED_)
- #define AFX_STDAFX_H__17A2229F_431B_11D0_B88F_00C04FD7A0F0__INCLUDED_
- #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
- #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 _Module
- extern CComModule _Module;
- #include <atlcom.h>
- // Developer Studio Object Model
- #include <ObjModeladdauto.h>
- #include <ObjModelappdefs.h>
- #include <ObjModelappauto.h>
- #include <ObjModelblddefs.h>
- #include <ObjModelbldauto.h>
- #include <ObjModeltextdefs.h>
- #include <ObjModeltextauto.h>
- #include <ObjModeldbgdefs.h>
- #include <ObjModeldbgauto.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 _DEBUG
- void GetLastErrorDescription(CComBSTR& bstr); // Defined in API2Help.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 %lxnn%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 Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STDAFX_H__17A2229F_431B_11D0_B88F_00C04FD7A0F0__INCLUDED)