|
-
Sep 16th, 2002, 03:18 PM
#1
Thread Starter
Junior Member
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
-
Sep 16th, 2002, 03:54 PM
#2
Frenzied Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|