00001
00002
00003
00004
00005 #if !defined(AFX_STDAFX_H__70C41B18_E3CE_11D3_B37A_005004D38590__INCLUDED_)
00006 #define AFX_STDAFX_H__70C41B18_E3CE_11D3_B37A_005004D38590__INCLUDED_
00007
00008 #pragma once
00009
00010 #ifndef _SECURE_ATL
00011 #define _SECURE_ATL 1
00012 #endif
00013
00014 #ifndef VC_EXTRALEAN
00015 #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
00016 #endif
00017
00018 #include "targetver.h"
00019
00020 #define _CRT_SECURE_NO_WARNINGS
00021
00022 #define _ATL_APARTMENT_THREADED
00023
00024 #include <atlbase.h>
00025
00026
00027 extern CComModule _Module;
00028 #include <atlcom.h>
00029
00030
00031 #define ASSERT ATLASSERT
00032
00033
00034 #define wireHWND HWND
00035
00036 #import "CoreLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00037 #import "MetaLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00038 #import "MgaLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00039 #import "MgaUtilLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00040 #import "ParserLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00041 #import "GMELib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00042
00043 #include "CommonImport.h"
00044
00045 #define cpp_quote(x)
00046 #include "Interfaceversion.h"
00047 #undef cpp_quote
00048 typedef GMEInterfaceVersion_enum GMEInterfaceVersion;
00049
00050
00051 #define __Core_h__
00052 #define __Meta_h__
00053 #define __Mga_h__
00054 #define __MgaUtil_h__
00055 #define __MgaUtilLib_h__
00056 #define __Parser_h__
00057 #define __Gme_h__
00058 #define __GmeLib_h__
00059 #define IID_IMgaDataSource __uuidof(IMgaDataSource)
00060 #define ATTVAL_ENUM _attval_enum
00061
00062
00063
00064 #include "CommonSmart.h"
00065 #include "CommonStl.h"
00066 #define GLOBAL_ID_STR "guid"
00067 #define GLOBAL_ID_LEN 38
00068 #define PREV_GLOBAL_ID_STR "guid/prev"
00069 #define PREV_ID_STR "prev"
00070 typedef IMgaConstraint IMgaMetaConstraint;
00071 typedef IMgaConstraints IMgaMetaConstraints;
00072
00073 #include <string>
00074 namespace std {
00075 #ifdef UNICODE
00076 typedef wstring tstring;
00077 #else
00078 typedef string tstring;
00079 #endif
00080 }
00081 static void CopyTo(const BSTR from, std::wstring& to)
00082 {
00083 if (from != NULL) {
00084 to = from;
00085 } else {
00086 to = L"";
00087 }
00088 }
00089 #include "comutil.h"
00090 #include "comdef.h"
00091 static _bstr_t PutInBstr(const std::wstring& str)
00092 {
00093 return _bstr_t(str.c_str());
00094 }
00095 static _bstr_t PutInBstr(const std::string& str)
00096 {
00097 return _bstr_t(str.c_str());
00098 }
00099
00100 #include <xercesc/util/PlatformUtils.hpp>
00101 class XMLPlatformUtilsTerminate_RAII {
00102 public:
00103 ~XMLPlatformUtilsTerminate_RAII() { xercesc_3_1::XMLPlatformUtils::Terminate(); }
00104 };
00105
00106 template <const IID* piid1, const IID* piid2>
00107 class ATL_NO_VTABLE ISupportErrorInfoImpl2 :
00108 public ISupportErrorInfo
00109 {
00110 public:
00111 STDMETHOD(InterfaceSupportsErrorInfo)(_In_ REFIID riid)
00112 {
00113 return (InlineIsEqualGUID(riid,*piid1) || InlineIsEqualGUID(riid,*piid2)) ? S_OK : S_FALSE;
00114 }
00115 };
00116
00117 template <const IID* piid1, const IID* piid2, const IID* piid3>
00118 class ATL_NO_VTABLE ISupportErrorInfoImpl3 :
00119 public ISupportErrorInfo
00120 {
00121 public:
00122 STDMETHOD(InterfaceSupportsErrorInfo)(_In_ REFIID riid)
00123 {
00124 return (InlineIsEqualGUID(riid,*piid1) || InlineIsEqualGUID(riid,*piid2) || InlineIsEqualGUID(riid,*piid3)) ? S_OK : S_FALSE;
00125 }
00126 };
00127
00128
00129
00130
00131
00132 #endif // !defined(AFX_STDAFX_H__70C41B18_E3CE_11D3_B37A_005004D38590__INCLUDED)