Do I have to call WSAStartup before I can use a CSocket object? When I call
CSocket::Create(), I get the error WSANOTINITIALISED: "Either the
application hasn't called WSAStartup or WSAStartup failed." The
documentation for CSocket doesn't appear to mention this at all.
> Do I have to call WSAStartup before I can use a CSocket object? When I
call
> CSocket::Create(), I get the error WSANOTINITIALISED: "Either the
> application hasn't called WSAStartup or WSAStartup failed." The
> documentation for CSocket doesn't appear to mention this at all.
>
>
"CheckAbdoul" <636865636B6162646F756C406E6F7370616D2E6D7670732E6F7267> wrote
> You need to call AfxSocketInit() in your App's InitInstance() if you
are
> planning to use the MFC socket classes.
>
> --
> Cheers
> Check Abdoul [ VC++ MVP ]
> -----------------------------------
>
> > Do I have to call WSAStartup before I can use a CSocket object? When I
> call
> > CSocket::Create(), I get the error WSANOTINITIALISED: "Either the
> > application hasn't called WSAStartup or WSAStartup failed." The
> > documentation for CSocket doesn't appear to mention this at all.
> >
> >
>
>