xref: /aoo42x/main/odk/examples/OLE/activex/StdAfx2.h (revision 34dd1e25)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // stdafx1.h : include file for standard system include files,
25 //      or project specific include files that are used frequently,
26 //      but are changed infrequently
27 
28 #if !defined(AFX_STDAFX_H__C1799EA0_62CC_44DE_A2DD_C9F0410FF7F1__INCLUDED_)
29 #define AFX_STDAFX_H__C1799EA0_62CC_44DE_A2DD_C9F0410FF7F1__INCLUDED_
30 
31 #if _MSC_VER > 1000
32 #pragma once
33 #endif // _MSC_VER > 1000
34 
35 #define STRICT
36 #ifndef _WIN32_WINNT
37 #define _WIN32_WINNT 0x0400
38 #endif
39 #define _ATL_APARTMENT_THREADED
40 #define _ATL_STATIC_REGISTRY
41 
42 #define min(a, b)  (((a) < (b)) ? (a) : (b))
43 
44 #include <atlbase.h>
45 //You may derive a class from CComModule and use it if you want to override
46 //something, but do not change the name of _Module
47 extern CComModule _Module;
48 #include <atlcom.h>
49 #include <atlctl.h>
50 
51 //{{AFX_INSERT_LOCATION}}
52 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
53 
54 #endif // !defined(AFX_STDAFX_H__C1799EA0_62CC_44DE_A2DD_C9F0410FF7F1__INCLUDED)
55