I Will Give Anyone £5 Via Paypal If They Can Answer Me This Question

Hey,

I'm new at any of this kind of programming, but i have a problem and someone with knowledge about the whole sitution would be a great help

I am using a program and when i try to use a certain feature it says "error, winsockinit must be called first"...

Basically in simple terms how do i do this

Thanks
Mike

BTW im serious about the 5 pounds


Answer this question

I Will Give Anyone £5 Via Paypal If They Can Answer Me This Question

  • rkalantri

    How do i use that info .....dos mode ...

    I'm as new to all this technical stuff as a sunburn is to a eskimo.

    Would love it to be simple, but its almost like ur've gotta read a few books b4 u truely know wat ur doing

    Mike

  • taheath

    Keep your money, I don't want it. Just do what the error message says: initialise winsock:

    WORD wVersionRequested;
    WSADATA wsaData;
    int err;
    wVersionRequested = MAKEWORD( 2, 2 );
    err = WSAStartup( wVersionRequested, &wsaData );
    if ( err != 0 ) { 
       /* Tell the user that we could not find a usable */ 
       /* WinSock DLL. */ 
       return;
    }
    /* do your thing here */


    WSACleanup( );


  • LucLuc

    I think the problem is that you are trying to use another program that has a problem.  The above code is what you would have done if you were writing a program.  At this point, about all you can do is contact the author of the program and see if they have a fix... they might not even know about the bug and/or it might be a problem exposed by your environment.  Either way, this is not something that will likely be "fixed" by anyone on this forum.
  • I Will Give Anyone £5 Via Paypal If They Can Answer Me This Question