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

    WSAConnectByName

    I'm using an example function direct from MSDN to return the IP address of a named site. It compiles fine, however, I get the following error:

    The procedure entry point WSAConnectByNameW could not be located in the dynamic link library WS2_32
    I've also tried the non-unicode version WSAConnectByNameA, and MT/MD etc. but everything gives the same error.

    Is my W32_32.dll bugged, or am I doing something wrong?


    ***
    Alternately, of the many winsock/iNet/etc. options available, what's the simplest way to connect to a named site (e.g. google.com or mywebpage.com)?

    I will be sending POST data to a .php page and reading back the resulting output to a buffer.

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: WSAConnectByName

    WSAConnectByName requires at least Vindows Vista or Windows Server 2008. On other older platforms, e.g. Windows XP, it may be not supported.
    Take a look in MSDN, at function requirements (bottom of WSAConnectByName documentation page).
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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