Re: Indy 9 & scktcomp.hpp results in winsock conflict

Giganews Newsgroups
Subject: Re: Indy 9 & scktcomp.hpp results in winsock conflict
Posted by:  FernDog (FernD…@WhoKnows.com)
Date: Fri, 2 Jul 2004

I was able to get it to build and run just fine but there has to be a better
way.

Please note that there is a warning stating not to edit machine generated
code within the header file.  I edited scktcomp.hpp, commenting the first
line below and replaced it with the second line:

//#include <WinSock.hpp>      // Pascal unit
#include <WinSock2.h>          // builds fine with this

Conditional settings set as follows:

_DEBUG;NO_WIN32_LEAN_AND_MEAN;_WINSOCKAPI_

Is this Ok or are there different options and/or recommendations to this?
Is there an alternative to using scktcomp.hpp that uses WinSock2 by any
chance?

Fern

Replies

In response to

Indy 9 & scktcomp.hpp results in winsock conflict posted by FernDog on Thu, 1 Jul 2004