Hello, i m use to work with VS6+ when I work with socket, but I got a project stuck with Borland 5.
I m trying to use winsock2.h, but i m having some problem to get it work.
Since I didn t had anything bout winsock2.h within my Borland file, I did try to find something bout it for Borland but haven t found anything. So I got "Microsoft Platform SDK for Windows Server 2003 R2" which have all kind stuff i Need in it. I made sure to include library and include path in my project to use these winsock2 files.
My soft do nothing at all atm, just trying to include that winsock2.h file :
I m getting error when i try to build up my project when it get to point of including winsock2.h such like this :
I have try many thing and I m realy clueless why it wont work...
when i look inside winsock2.h, it get into error at this line :
Just after u_int64
I m running on win XP Pro SP2
So, is it because i m using wrong file to make winsock2 work, is it because I haven t link well my stuff... I kinda need some input plz
I m trying to use winsock2.h, but i m having some problem to get it work.
Since I didn t had anything bout winsock2.h within my Borland file, I did try to find something bout it for Borland but haven t found anything. So I got "Microsoft Platform SDK for Windows Server 2003 R2" which have all kind stuff i Need in it. I made sure to include library and include path in my project to use these winsock2 files.
My soft do nothing at all atm, just trying to include that winsock2.h file :
Code:
#include <winsock2.h>
#include <ws2tcpip.h>
int main(void)
{
return 0;
}
I m getting error when i try to build up my project when it get to point of including winsock2.h such like this :
Code:
Error:WINSOCK2.H(91,33):, expected
Error:WINSOCK2.H(98,31):, expected
Error:WINSOCK2.H(114,25):Type name expected
Error:WINSOCK2.H(114,25):Declaration missing ;
Warn :WINSOCK2.H(117,43):Style of function definition is now obsolete
Error:WINSOCK2.H(117,56):, expected
Error:WINSOCK2.H(1222,32):Type name expected
Error:WINSOCK2.H(1266,26):Type name expected
Error:WINSOCK2.H(1266,26):Declaration missing ;
Error:WINSOCK2.H(1621,7):extern variable cannot be initialized
Error:WINSOCK2.H(1621,7):Declaration syntax error
Error:WINSOCK2.H(1644,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1665,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1682,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1703,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1724,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1745,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1766,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1859,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1912,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1935,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(1987,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(2010,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(2037,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(2062,14):'SOCKET' cannot start a parameter declaration
Error:WINSOCK2.H(2079,7):extern variable cannot be initialized
Error:WINSOCK2.H(2079,7):Too many error or warning messages
I have try many thing and I m realy clueless why it wont work...
when i look inside winsock2.h, it get into error at this line :
Code:
typedef unsigned __int64 u_int64;
I m running on win XP Pro SP2
So, is it because i m using wrong file to make winsock2 work, is it because I haven t link well my stuff... I kinda need some input plz