关于error C2629: unexpected 'class TestS ('该如何解决
关于error C2629: unexpected 'class TestS ('
提示这个代码有错误,请问我粘贴部分代码能看出明显的错误吗?
------解决方案--------------------
CServerPort类的头文件没有包进来?
/* TestServer.h */
#ifndef __TESTSERVER_H__
#define __TESTSERVER_H__
#include <map>
#include <set>
#include <IOSTREAM>
#include "serverport.h"
#include "baseFile/CDP/cdp_tcp.h"
#include "baseFile/BCmain/main.h"
#define FILE_DTCFG "dtcfg.ini"
#define CODE_DOWNLOAD_DTCFG 100
typedef map<int, int> Map_TidToCid;
class TestS : public CDP_TCP_SERVER
{
public:
TestS(CServerPort* _cServerPort,
CDP* _cdp_m=NULL,
TSoftDog* _tdog=NULL,
int _dogtime=0,
char* _name="TestServer");
virtual ~TestS();
protected:
virtual bool DoFirst(void);
virtual void RunOnce(void);
virtual bool ProcessTIP(TIP_HEAD* tip);
private:
int testScid;
time_t timer;
Map_TidToCid map_tidtocid;
Map_TidToCid::const_iterator it;
CServerPort* cServerPort;
};
#endif
提示这个代码有错误,请问我粘贴部分代码能看出明显的错误吗?
------解决方案--------------------
CServerPort类的头文件没有包进来?