6 个解决方案
#1
afxsock.h
ws2_32.lib
ws2_32.lib
#2
afxsock.h
ws2_32.lib
ws2_32.lib
#3
#4
ws2_32.lib用什么方式调用?
#5
在VC6中如下设置:
project->setting->Link
object/library modules:
"ws2_32.lib"
project->setting->Link
object/library modules:
"ws2_32.lib"
#6
在头文件里加入以下语句即可
#include <afxsock.h>
#pragma comment(lib,"ws2_32.lib")
#include <afxsock.h>
#pragma comment(lib,"ws2_32.lib")
#1
afxsock.h
ws2_32.lib
ws2_32.lib
#2
afxsock.h
ws2_32.lib
ws2_32.lib
#3
#4
ws2_32.lib用什么方式调用?
#5
在VC6中如下设置:
project->setting->Link
object/library modules:
"ws2_32.lib"
project->setting->Link
object/library modules:
"ws2_32.lib"
#6
在头文件里加入以下语句即可
#include <afxsock.h>
#pragma comment(lib,"ws2_32.lib")
#include <afxsock.h>
#pragma comment(lib,"ws2_32.lib")