开发者

WinSock Library for Visual C++ 2008 Express?

开发者 https://www.devze.com 2023-01-29 10:35 出处:网络
please how to add winsock library to Visual C++ 2008 Express? I tried including <windows.h> alone, than <windows.h> and <winsock.h>, but I get LINK error on WSAStartup().

please how to add winsock library to Visual C++ 2008 Express? I tried including <windows.h> alone, than <windows.h> and <winsock.h>, but I get LINK error on WSAStartup().

I fou开发者_运维技巧nd somewhere that you need to add additional dependencies for your project, so I brought up linker for project properties, and in the select box for additional dependencies there was no ws_32.lib, So I tried to add it manually (write it) but still LINK Error....


Visual C++ Express don't install the full Windows SDK. You can download and install the full SDK from Microsoft.

After installing the SDK there is a tool (it will be on the start menu) to register the SDK directories with Visual Studio. After than you should be able to reference winsock.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号