d:\netbios1\netbios\Win32NetBIOS.c(45) : error C2061: syntax error : identifier _shutdownEvent
d:\netbios1\netbios\Win32NetBIOS.c(45) : error C2059: syntax error : ;
d:\netbios1\netbios\Win32NetBIOS.c(45) : error C2513: /*global*/ : no variable declared before =
d:\netbios1\netbios\Win32NetBIOS.c(948) : warning C4996: wcscat was declared deprecated
d:\netbios1\netbios\Win32NetBIOS.c(949) : warning C4996: wcscat was declared deprecated
d:\netbios1\netbios\Win32NetBIOS.c(983) : error C2065: _shutdownEvent : undeclared identifier
d:\netbios1\netbios\Win32NetBIOS.c(984) : warning C4013: WSACloseEvent undefined; assuming extern returning int
d:\netbios1\netbios\Win32NetBIOS.c(985) : warning C4013: WSACreateEvent undefined; assuming extern returning int
d:\netbios1\netbios\Win32NetBIOS.c(1001) : warning C4022: SetEvent : pointer mismatch for actual parameter 1
d:\netbios1\netbios\Win32NetBIOS.c(1227) : error C2065: WSAEVENT : undeclared identifier
d:\netbios1\netbios\Win32NetBIOS.c(1227) : error C2146: syntax error : missing ; before identifier events
d:\netbios1\netbios\Win32NetBIOS.c(1227) : error C2065: events : undeclared identifier
d:\netbios1\netbios\Win32NetBIOS.c(1227) : error C2109: subscript requires array or pointer type
d:\netbios1\netbios\Win32NetBIOS.c(1228) : error C2275: HANDLE : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winnt.h(334) : see declaration of HANDLE
d:\netbios1\netbios\Win32NetBIOS.c(1228) : error C2146: syntax error : missing ; before identifier handle
d:\netbios1\netbios\Win32NetBIOS.c(1228) : error C2065: handle : undeclared identifier
d:\netbios1\netbios\Win32NetBIOS.c(1236) : error C2109: subscript requires array or pointer type
d:\netbios1\netbios\Win32NetBIOS.c(1237) : error C2109: subscript requires array or pointer type
d:\netbios1\netbios\Win32NetBIOS.c(1239) : error C2109: subscript requires array or pointer type
d:\netbios1\netbios\Win32NetBIOS.c(1241) : warning C4047: function : PHANDLE differs in levels of indirection from int *__w64
d:\netbios1\netbios\Win32NetBIOS.c(1241) : warning C4022: NotifyAddrChange : pointer mismatch for actual parameter 1
d:\netbios1\netbios\Win32NetBIOS.c(1247) : error C2109: subscript requires array or pointer type
d:\netbios1\netbios\Win32NetBIOS.c(1247) : error C2198: WaitForMultipleObjects : too few arguments for call
d:\netbios1\netbios\Win32NetBIOS.c(1253) : error C2109: subscript requires array or pointer type
主要是以下引起的
WSAEVENT _shutdownEvent = 0;
#include <winsock2.h>
需要添加头文件和lib库
Header: Declared in winsock2.h.
Import Library: Link with ws2_32.lib.
同意楼上。
WSAEVENT shutdownEvent;