server.cpp
来自「国外网游源码....除工具源码缺少之外,其余程序都全...至于,什么游戏,因为国」· C++ 代码 · 共 53 行
CPP
53 行
// server.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "MasterServer.h"
#include "Manager.h"
HINSTANCE g_hInst;
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
// TODO: Place code here.
MSG msg = {0, };
try
{
if(g_cMasterServer.Init())
{
while(1)
{
if(PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE))
{
if(!GetMessage(&msg, NULL, 0, 0))
break;
g_cMasterServer.DispatchMessage(&msg);
// TranslateMessage(&msg);
// DispatchMessage(&msg);
}
else
{
//匙飘亏 贸府(咀萍宏惑怕啊 酒聪绢档 龋免登具 茄促)
if(!g_cMasterServer.Run())
break;
}
}
}
}
catch(...)
{
MessageBox(NULL, "MasterServer Clash!!", "Error", MB_OK | MB_ICONERROR);
}
return (int)msg.wParam;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?