GME  13
StdAfx.h
Go to the documentation of this file.
00001 // stdafx.h : include file for standard system include files,
00002 //      or project specific include files that are used frequently,
00003 //      but are changed infrequently
00004 
00005 
00006 #if !defined(AFX_STDAFX_H__270B4F89_B17C_11D3_9AD1_00AA00B6FE26__INCLUDED_)
00007 #define AFX_STDAFX_H__270B4F89_B17C_11D3_9AD1_00AA00B6FE26__INCLUDED_
00008 
00009 #define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS 1
00010 #ifdef _DEBUG
00011 // #define _ATL_DEBUG_INTERFACES 1
00012 #endif
00013 
00014 #pragma warning(3:4701) // Potentially uninitialized local variable 'name' used
00015 
00016 #pragma once
00017 
00018 //#define _SECURE_SCL 0
00019 //#define _HAS_ITERATOR_DEBUGGING 0
00020 
00021 //#define _ATL_DEBUG_INTERFACES
00022 // If you find a leak, put this in DllMain to DebugBreak on every AddRef/Release on that interface pointer
00023 // _AtlDebugInterfacesModule.m_nIndexBreakAt = 42;
00024 
00025 #ifndef _SECURE_ATL
00026 #define _SECURE_ATL 1
00027 #endif
00028 
00029 #ifndef VC_EXTRALEAN
00030 #define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers
00031 #endif
00032 
00033 #include "targetver.h"
00034 
00035 #define _CRT_SECURE_NO_WARNINGS
00036 
00037 #define _ATL_APARTMENT_THREADED
00038 
00039 #include <atlbase.h>
00040 //You may derive a class from CComModule and use it if you want to override
00041 //something, but do not change the name of _Module
00042 extern CComModule _Module;
00043 #include <atlcom.h>
00044 #pragma warning(push,3)
00045 
00046 
00047 #include <list>//slist
00048 #include <string>
00049 #include <set>
00050 #include <queue>
00051 #include <vector>
00052 #include <hash_set>
00053 #include <hash_map>
00054 #pragma warning(pop)
00055 
00056 #ifdef _DEBUG
00057 #define MGA_TRACE AtlTrace
00058 #else
00059 inline void NOOP_TRACE2(LPCSTR, ...) { }
00060 #define MGA_TRACE 1 ? void(0) : NOOP_TRACE2
00061 #endif
00062 
00063 // Imports
00064 #import "CoreLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00065 #import "MetaLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00066 #import "MgaLib.tlb" no_implementation no_namespace raw_method_prefix("") high_method_prefix("__") no_registry
00067 
00068 #include "CommonImport.h"
00069 
00070 #define cpp_quote(x) 
00071 #include "Interfaceversion.h"
00072 #undef cpp_quote
00073 
00074 // Don't load the MIDL-generated headers
00075 #define __Core_h__
00076 #define __Meta_h__
00077 #define __Mga_h__
00078 #define INTERFACECOLL_INCLUDED
00079 // End Imports
00080 
00081 #if 1
00082 #define ASSERT ATLASSERT
00083 #else
00084 static int _MgaDbgReportW(const wchar_t* file, __int64 line, const wchar_t* msg)
00085 {
00086         wchar_t message[1024 * 2];
00087         swprintf_s(message, L"Assert failed at %s:%I64d\n\nExpression: %s\n\nPress Ok to debug.", file, line, msg);
00088         return ::MessageBox(0, message, L"Assert failed", MB_OKCANCEL);
00089 }
00090 
00091 #define _MGAASSERTE(expr, msg) \
00092         (void) ((!!(expr)) || \
00093                 (IDOK == _MgaDbgReportW(_CRT_WIDE(__FILE__), __LINE__, msg)) && (DebugBreak(), 0))
00094 #define ASSERT(expr)  _MGAASSERTE((expr), _CRT_WIDE(#expr))
00095 
00096 #endif
00097 #include "CommonSmart.h"
00098 #include "CommonStl.h"
00099 #include "CommonError.h"
00100 #include "CommonCollection.h"
00101 #include "MgaGeneric.h"
00102 #include "MgaCoreObj.h"
00103 #include "MgaTrukk.h"
00104 
00105 //{{AFX_INSERT_LOCATION}}
00106 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00107 
00108 #endif // !defined(AFX_STDAFX_H__270B4F89_B17C_11D3_9AD1_00AA00B6FE26__INCLUDED)