I'm trying to write some more classes and I'm getting errors with the deconstructor/constructor. I have no idea how to interpret the error:
what to do?sockets.h(43) : error C2600: 'WINSOCKET::WINSOCKET' : cannot define a compiler-generated special member function (must be declared in the class first)
sockets.h(52) : error C2600: 'WINSOCKET::~WINSOCKET' : cannot define a compiler-generated special member function (must be declared in the class first)
PHP Code:
WINSOCKET::WINSOCKET(){
wVersionRequested = MAKEWORD(1,1);
nRet = WSAStartup(wVersionRequested, &wsaData);
/* if (wsaData.wVersion != wVersionRequested)
return WRONG_VERSION;
else
return SUCCESS;*/
}
WINSOCKET::~WINSOCKET(){
closesocket(theSocket);
}