// movie_svr.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include "server.h"
#define SVR_PORT 8989
using namespace std;
DWORD count=0;
CLIENTINFO ClientArray[1024];
WSAEVENT hEventArray[1024];
bool SeverInit(void);
unsigned int AcceptClientSocket(void *pParam);
int _tmain(int argc, _TCHAR* argv[])
{
CServer *server=NULL;
if(!ServerInit())
return 1;
return 0;
}
// stdafx.h : 标准系统包含文件的包含文件,
// 或是常用但不常更改的项目特定的包含文件
//
#pragma once
#include <winsock2.h>
#include <windows.h>
#include <iostream>
#include <tchar.h>
#include <stdio.h>
// TODO: 在此处引用程序要求的附加头文件
#pragma comment(lib,"ws2_32.lib")
typedef struct _Client_info
{
SOCKET s;
char name[20];
char capacity[5];
}CLIENTINFO,*PCLIENTINFO;
d:\visual studio project\movie_svr\movie_svr.cpp(22) : error C3861: “ServerInit”: 即使使用参数相关的查找,也未找到标识符?
//
#include "stdafx.h"
#include "server.h"
#define SVR_PORT 8989
using namespace std;
DWORD count=0;
CLIENTINFO ClientArray[1024];
WSAEVENT hEventArray[1024];
bool SeverInit(void);
unsigned int AcceptClientSocket(void *pParam);
int _tmain(int argc, _TCHAR* argv[])
{
CServer *server=NULL;
if(!ServerInit())
return 1;
return 0;
}
// stdafx.h : 标准系统包含文件的包含文件,
// 或是常用但不常更改的项目特定的包含文件
//
#pragma once
#include <winsock2.h>
#include <windows.h>
#include <iostream>
#include <tchar.h>
#include <stdio.h>
// TODO: 在此处引用程序要求的附加头文件
#pragma comment(lib,"ws2_32.lib")
typedef struct _Client_info
{
SOCKET s;
char name[20];
char capacity[5];
}CLIENTINFO,*PCLIENTINFO;
d:\visual studio project\movie_svr\movie_svr.cpp(22) : error C3861: “ServerInit”: 即使使用参数相关的查找,也未找到标识符?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货