stdafx.h

来自「一个opc服务器」· C头文件 代码 · 共 66 行

H
66
字号
// 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__2BB721C7_1F3D_4DA7_9C11_CB85D961A432__INCLUDED_)
#define AFX_STDAFX_H__2BB721C7_1F3D_4DA7_9C11_CB85D961A432__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers
#define _WIN32_DCOM     // This includes new DCOM calls

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC OLE automation classes
#include <afxcmn.h>         // MFC support for Windows Common Controls
#include <afxtempl.h>       // MFC template collections
#include <afxcview.h>
#include <atlbase.h>        // ATL conversion functions
#include "Resource.h"

#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
#include "OPCWrap.h"    // wrapper classes around the OPC interface

const int MAX_KEYLEN = 256;

#define DATATIMEFORMAT  // define this to use OPCSTMFORMATDATATIME
                        // otherwise, uses OPCSTMFORMATDATA

extern UINT OPCSTMFORMATDATA;
extern UINT OPCSTMFORMATDATATIME;
extern UINT OPCSTMFORMATWRITECOMPLETE;

#define     WM_OPCDATA     WM_USER + 50
#define     WM_OPCWRITE    WM_USER + 51
#define     WM_OPCSHUTDOWN WM_USER + 52

void VariantToString(VARIANT value, CString& strText);


//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__2BB721C7_1F3D_4DA7_9C11_CB85D961A432__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?