[wx 2.6.3, WinXP, VC7.1] winsock vs winsock2.

Vadim Zeitlin vadim at wxwindows.org
Fri Aug 4 14:22:30 PDT 2006


On Fri, 4 Aug 2006 15:12:14 -0400 "Broer, Dirk" <Dirk.Broer at symbol.com> wrote:

BD> Now, I can force ACE to use winsock (massive recompile etc.) or I think
BD> I would like to force wxWidgets to using winsock2.

 This shouldn't be difficult but it's not supported out of the box.
Basically, what you need to do is to extract all inclusions of winsock.h
(just 4 of them in fact) in some wx/msw/wrapwsck.h which then would include
either winsock.h or winsock2.h depending on some wxUSE_WINSOCK2 setting.
If you decide to do this, please consider submitting a patch as this would
(a) ensure that this code is maintained and (b) could be useful to other
people.

 Good luck!
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list