Hi
First of all I'm new here and I think the project is fantastic :wink:
So and now my problem:
I want to code a Client/Server based login-system for a multiplayer game.
But if I include windows.h and SFML/Network.hpp there are a cuple of mistakes:
112 C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock2.h [Error C2011] 'fd_set': 'struct' Typneudefinition
156 C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock2.h [Error C2011] 'timeval': 'struct' Typneudefinition
and so on
Oh my IDE is german in english "Typneudefinition" is Typenewdefinition I think.
now my Code:
#include <iostream>
#include <windows.h>
#include <mysql.h>
#include <string>
#include <SFML/Network.hpp>
using namespace std;
class CLoginSystem
{
private:
MYSQL *my;
public:
CLoginSystem();
~CLoginSystem();
bool CheckPassword(string username, string password);
};
I hope you can help me and sorry for my bad english. I'm german