[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Fw: winsock



Hello,

Also u need to link with Wsock32.lib

"Vani R." wrote:

> Hi,
>
> You need to use the following before making use of win sock calls.
>
> if (WSAStartup(wVersion,&wsaData) != 0)
>  {
>   Terminate(GetLastError());
>   return FALSE;
>  }
>
> where the two parameters of WSAStartup declared and initialized as follows:
> WORD wVersion = MAKEWORD(1,1);
>  WSADATA wsaData;
>
> Hope this helps u.
>
> Lakshmi Gopinath wrote:
>
> > hi,
> >
> > I know this is not an appropriate issue in a linux forum. I am having some
> > problems trying to port my networks application  from linux to windows
> > environment. I am using vc++ 6.0 and Winsock 1.1...the program compiles fine
> > but I get a link error. any ideas ??
> >
> > cheers,
> > Lakshmi
> >
> > ---------------------------------------------
> > An alpha version of a web based tool to manage
> > your subscription with this mailing list is at
> > http://lists.linux-india.org/cgi-bin/mj_wwwusr
>
> --
> To make mistakes is human;
> to stumble is commonplace;
> to be able to laugh at yourself is maturity.
>
> - William Ward
>
> ---------------------------------------------
> Find out more about this and other Linux India
> mailing lists at http://lists.linux-india.org/

--
To make mistakes is human;
to stumble is commonplace;
to be able to laugh at yourself is maturity.

- William Ward