-
Notifications
You must be signed in to change notification settings - Fork 3
/
stdafx.h
82 lines (63 loc) · 2.82 KB
/
stdafx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif
// This plug-in is Rhino 6 ready
#define RHINO_V6_READY
// This plug-in uses Rhino 6 MFC classes
#define RHINO_SDK_MFC
// Plug-ins must use the release version of MFC used by Rhino.
// Plug-ins that require debugging information need to be built with
// RHINO_DEBUG_PLUGIN defined.
#if defined(RHINO_DEBUG_PLUGIN) && defined(_DEBUG)
// Rhino 6 Debug plug-ins should define RHINO_DEBUG_PLUGIN,
// but not define _DEBUG in the .vcxproj file.
#error Do not define _DEBUG - use RHINO_DEBUG_PLUGIN instead
#endif
// Rhino SDK Preamble
#include "RhinoSdkStdafxPreamble.h"
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h> // MFC OLE classes
#include <afxodlgs.h> // MFC OLE dialog classes
#include <afxdisp.h> // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT
#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h> // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT
#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h> // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT
#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
const wchar_t* RHSTR(const wchar_t* s);
const wchar_t* RHSTR_LIT(const wchar_t* s);
#if defined(_M_X64) && defined(WIN32) && defined(WIN64)
// The afxwin.h includes afx.h, which includes afxver_.h,
// which unconditionally defines WIN32 This is a bug.
// Note, all Windows builds (32 and 64 bit) define _WIN32.
// Only 64-bit builds define _WIN64. Never define/undefine
// _WIN32 or _WIN64. Only define EXACTLY one of WIN32 or WIN64.
// See the MSDN "Predefined Macros" help file for details.
#undef WIN32
#endif
// Rhino SDK classes
#include "RhinoSdk.h"
// Rhino Render Development Kit (RDK) classes
#include "RhRdkHeaders.h"
// TODO: include additional Rhino-related header files here
#if defined(RHINO_DEBUG_PLUGIN)
// Now that all the system headers are read, we can
// safely define _DEBUG so the developers can test
// for _DEBUG in their code.
#define _DEBUG
#endif
// Rhino SDK linking pragmas
#include "rhinoSdkPlugInLinkingPragmas.h"