stdafx.h

来自「VisualC++通信编程工程实例精解 Chapter 2 Example」· C头文件 代码 · 共 43 行

H
43
字号
// 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__5B3AE960_EFC0_4F8A_8B04_8033C2DCBFA2__INCLUDED_)
#define AFX_STDAFX_H__5B3AE960_EFC0_4F8A_8B04_8033C2DCBFA2__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 "OPCWrap.h" 

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

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

#endif // !defined(AFX_STDAFX_H__5B3AE960_EFC0_4F8A_8B04_8033C2DCBFA2__INCLUDED_)

⌨️ 快捷键说明

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