Does the sample code call WSAStartup()? This is needed for WIN NT socket calls.
Lingyun Wang wrote:
> THanks for the help very much.
>
> I tried to build demos\cli.cpp and serv.cpp projects
> under VC++6 env.
>
> I changed
>
> #include <sys/socket.h>
> #include <netinet/in.h>
> #include <arpa/inet.h>
> #include <netdb.h>
>
> into
>
> #include <winsock2.h>
>
> for win32 env.
>
> I added
>
> ssleay32.lib
> libeay32.lib
> wsock32.lib
>
> to
>
> object/lib modules
>
> for vc++6 dev env.
>
> Then
> I compiled and linked the two projects "successfully".
>
> But whenever I tried to run either one, program failed
> at the socket() function.
>
> Is something wrong within the above steps or some
> important step missed?
>
> I am waiting for your help.
> Thanks very much.
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
--
Bob Ollila - [EMAIL PROTECTED]
(603)665-8100, (603)665-8103 fax
TerraLink Technologies - http://www.terralinktech.com
1600 Candia Road, Suite 5, Manchester NH 03109
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]