going back to my compiler question
im using dev c++ and i cant even get this part of the code to work
Code:
#include <iostream.h>
#include <iomanip.h>
#include <stdlib.h>
#include <winsock.h>
#include <stdio.h>
//#include <winsock2.h>
using namespace std;
int main()
{
WSADATA wsaData; // if this doesn't work
//WSAData wsaData; // then try this instead
if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0)
{
fprintf(stderr, "WSAStartup failed.\n");
exit(1);
}
system("PAUSE");
return 0;
}
and if i try to include winsock2.h, it gives me an error saying unbalanced ifndef or something