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

📄 stdafx.h

📁 奇迹世界data 服务器代码,研究游戏的朋友有帮助
💻 H
字号:
#ifndef __STDAFX_H__
#define __STDAFX_H__


#pragma once

#define _USING_ODBC				///< ODBC荤侩
//#define _USING_OLEDB			///< OLEDB荤侩
//#define _USING_SQLLIB			///< SQLLIB荤侩
#define _USING_SIMPLE_CONSOLE	//< solarSimpleConsole荤侩
//#define _USING_ACCOUNT_DBPROXY_SERVER
#define WIN32_LEAN_AND_MEAN

#include <windows.h>
#include <Winsock2.h>
#include <oledb.h>

#include <tchar.h>
#include <Const.h>
#include <Define.h>
#include <PacketStruct.h>
#include <Singleton.h>
#include <Linkedlist.h>
#include <CriticalSection.h>
#include <SafeMemoryPoolFactory.h>
#include <MemoryPoolFactory.h>
#include <SolarDatabaseDefine.h>
#include <SolarAssert.h>
#include <stdio.h>
#include <ServerCommonDef.h>

using namespace util;


// To Do : 目胶乓 孽府甸阑 橇府哪颇老 庆歹肺 贸府
#include "AgentServerQuery.h"
#include "DatabaseProxyQuery.h"
#include "GameServerQuery.h"
#include "MasterServerQuery.h"
#include "QueryPoolFactory.h"





#pragma comment( lib, "ws2_32.lib" )

#ifdef _DEBUG
#pragma comment( lib, "Network_d.lib" )
#pragma comment( lib, "Utility_d.lib" )
#pragma comment( lib, "ServerCommon_d.lib" )
#pragma comment( lib, "SolarDatabase_d.lib" )
#pragma comment( lib, "ProgramCommon_d.lib" )
#pragma comment( lib, "WzFilePacker_Static.lib")
#pragma comment( lib, "SolarLog_d.lib")
#else
#pragma comment( lib, "Network.lib" )
#pragma comment( lib, "Utility.lib" )
#pragma comment( lib, "SolarDatabase.lib" )
#pragma comment( lib, "ServerCommon.lib" )
#pragma comment( lib, "ProgramCommon.lib" )
#pragma comment( lib, "WzFilePacker_Static.lib")
#pragma comment( lib, "SolarLog.lib")
#endif


typedef unsigned short u_short;

#define		MAKEDWORD(a, b)						((DWORD)(((WORD)((DWORD_PTR)(a) & 0xffff)) | ((DWORD)((WORD)((DWORD_PTR)(b) & 0xffff))) << 16))

// 傈开函荐		2005/11/23 炼犁侥 眠啊
#include <SunLog.h>
extern CSunLog*	g_pSunLog;

bool MessageOut(BYTE byLogLevel, char *szMsg,...);
#define SUNLOG	MessageOut

#ifdef _DEBUG

	#include <SUNConsole.h>
	extern SUNConsole g_SUNConsole;
	#ifndef _USING_SIMPLE_CONSOLE
		#define DISPMSG				g_pIConsole->OutputDisplayArg
	#else
		#define DISPMSG				printf
	#endif

#else

#endif



#endif // __STDAFX_H__

⌨️ 快捷键说明

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