网络编程问题 是关于头文件的吗 帮帮忙
:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(16) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(35) : error C2653: '_AFX_SOCK_STATE' : is not a class or namespace name
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(37) : error C2065: 'm_pfnSockTerm' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(39) : warning C4508: '_AFX_SOCK_STATE' : function should return a value; 'void' return type assumed
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(46) : error C2065: 'pState' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(46) : error C2296: '*' : illegal, left operand has type 'int (__cdecl *)(void)'
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(46) : error C2065: '_afxSockState' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(46) : error C2228: left of '.GetData' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(47) : error C2227: left of '->m_hInstSOCK' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(49) : error C2227: left of '->m_pfnSockTerm' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(51) : error C2227: left of '->m_hInstSOCK' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(52) : error C2227: left of '->m_hInstSOCK' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(58) : error C2296: '*' : illegal, left operand has type 'int (__cdecl *)(void)'
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(58) : error C2228: left of '.GetData' must have class/struct/union type
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(59) : error C2227: left of '->m_pfnSockTerm' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(78) : error C2227: left of '->m_pfnSockTerm' must point to class/struct/union
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(205) : error C2065: 'USES_CONVERSION' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(210) : error C2065: 'T2A' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(210) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(250) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(306) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(341) : error C2065: 'WM_SOCKET_NOTIFY' : undeclared identifier
D:\Microsoft Visual Studio\VC98\MFC\SRC\SOCKCORE.CPP(491) : error C2065: 'WM_SOCKET_DEAD' : undeclared identifier
一共有28个错误 但是我觉得应该就是一个地方错了 很多宏都不能给编译器识别 是为什么呢?