-
Unix --> windows
I got this c++ writen in unix so that it is full of includes like this
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <netinet/in.h>
#include <unistd.h>
#include <netdb.h>
and if I am not mistaken then that are includes from good old unix. Is there way I can move this code to vc++ 6. I rater not want to do this by hand since it is few thousends of lines
Any ideas?
Icesoft
-
Your more unusual includes are for BSD sockets - like the hostent struct in netdb.h
Windows has most of that, but not necessarily in the header files you have listed.
Windows sockets are very much like BSD sockets, and are based on them. There are a few differences. Plus, you need to lose a lot of includes: <winsock.h> does most of it.
See this thread for a discussion:
http://www.vbforums.com/showthread.p...hlight=sockets