CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Posts
    194

    how do i link the winsock library??

    In the tutorial
    http://www.hal-pc.org/~johnnie2/winsock.html
    it says this:

    "Remember that any code presented in this tutorial should be linked with the Winsock library, usually wsock32.lib or something similarly named."


    how exactly do" i link the winsock library??"

    #include wsock32.lib???
    #include wsock32.h??

    doesnt work

    wsock32.lib's in binary

    using vc++ 6.0 btw

  2. #2
    Join Date
    Feb 2004
    Posts
    21
    In Visual Studio .NET go to Solution Explorer and give Properties of your project. Then go to Linker,Input, Additional Dependencies and type wsock32.lib.
    I don't know about VS 6 but i suppose it is something like that

  3. #3
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    usually you link in the linker settings to ws2_32.lib (winsock2 dll) or
    #pragma comment(lib,"ws2_32)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured