⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdafx.h

📁 基于UDP协议的winsock聊天室
💻 H
字号:
// 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__CF6B8C3B_59B2_4019_B88E_8C314F0062D7__INCLUDED_)
#define AFX_STDAFX_H__CF6B8C3B_59B2_4019_B88E_8C314F0062D7__INCLUDED_

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

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#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 <afxsock.h>		// MFC socket extensions

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

#endif // !defined(AFX_STDAFX_H__CF6B8C3B_59B2_4019_B88E_8C314F0062D7__INCLUDED_)

#include "afxtempl.h"

/*
CString CatchErr()
{
	CString str;
	switch(GetLastError())
	{
	case WSANOTINITIALISED:
		str = "WSANOTINITIALISED";
		break;
	case WSAENETDOWN:
		str = "WSAENETDOWN";
		break;
	case WSAEADDRINUSE:
		str = "WSAEADDRINUSE";
		break;
	case WSAEINPROGRESS:
		str = "WSAEINPROGRESS";
		break;
	case WSAEADDRNOTAVAIL:
		str = "WSAEADDRNOTAVAIL";
		break;
	case WSAEAFNOSUPPORT:
		str = "WSAEAFNOSUPPORT";
		break;
	case WSAECONNREFUSED:
		str = "WSAECONNREFUSED";
		break;
	case WSAEDESTADDRREQ:
		str = "WSAEDESTADDRREQ";
		break;
	case WSAEFAULT:
		str = "WSAEFAULT";
		break;
	case WSAEINVAL:
		str = "WSAEINVAL";
		break;
	case WSAEISCONN :
		str = "WSAEISCONN ";
		break;
	case WSAEMFILE :
		str = "WSAEMFILE ";
		break;
	case WSAENETUNREACH:
		str = "WSAENETUNREACH";
		break;
	case WSAENOBUFS:
		str = "WSAENOBUFS";
		break;
	case WSAENOTSOCK:
		str = "WSAENOTSOCK";
		break;
	case WSAETIMEDOUT :
		str = "WSAETIMEDOUT";
		break;
	case WSAEWOULDBLOCK:
		str = "WSAEWOULDBLOCK";
		break;
	}
	return str;
}	*/

⌨️ 快捷键说明

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