StdAfx.h
资源名称:xml_Vc.zip [点击查看]
上传用户:quanyou
上传日期:2022-06-07
资源大小:39k
文件大小:2k
源码类别:
xml/soap/webservice
开发平台:
Visual C++
- // 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__9871EC13_015A_4935_BDD3_559C429A72CC__INCLUDED_)
- #define AFX_STDAFX_H__9871EC13_015A_4935_BDD3_559C429A72CC__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 <afxdisp.h> // MFC Automation classes
- #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
- //For pure SAX interface and you don't want to trap com error as C++ exception,
- //you can do #import with raw_interfaces_only
- #import <msxml3.dll> raw_interfaces_only
- //otherwise, uncomment this line
- //#import <msxml3.dll> high_method_prefix("_") raw_method_prefix("")
- using namespace MSXML2;
- #include <assert.h>
- #include <atlbase.h>
- void dump_com_error(_com_error &e);
- void dump_com_error(_com_error &e)
- {
- printf("Errorn");
- printf("atCode = %08lxn", e.Error());
- printf("atCode meaning = %s", e.ErrorMessage());
- _bstr_t bstrSource(e.Source());
- _bstr_t bstrDescription(e.Description());
- printf("atSource = %sn", (LPCSTR) bstrSource);
- printf("atDescription = %sn", (LPCSTR) bstrDescription);
- }
- #define S_ABORT_WANTED ((HRESULT)0x800400caL)
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STDAFX_H__9871EC13_015A_4935_BDD3_559C429A72CC__INCLUDED_)