P
pnigl
Hello, i tried to set up a socket connection with the following code:
#include <afxwin.h>
#include <afxsock.h>
int main()//int argc, char* argv[]
{
CAsyncSocket socket;
socket.Create();
socket.Connect("login.itd.umich.edu", 13);
// you might actually need to use OnReceive() here,
// I'm not sure.
char* Buffer = new char[256];
socket.Receieve(Buffer, 255);
AfxMessageBox(Buffer);
return 0:
}
But there are the following Errormsg...
winnt.h(1092) : error C2146: syntax error : missing ';' before
identifier 'KSPIN_LOCK'
winnt.h(1092) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
....and I have no clue how to fix it. If theres anyone who can help me
please do so
Perhaps with some Documentation...
Very much thx
#include <afxwin.h>
#include <afxsock.h>
int main()//int argc, char* argv[]
{
CAsyncSocket socket;
socket.Create();
socket.Connect("login.itd.umich.edu", 13);
// you might actually need to use OnReceive() here,
// I'm not sure.
char* Buffer = new char[256];
socket.Receieve(Buffer, 255);
AfxMessageBox(Buffer);
return 0:
}
But there are the following Errormsg...
winnt.h(1092) : error C2146: syntax error : missing ';' before
identifier 'KSPIN_LOCK'
winnt.h(1092) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
....and I have no clue how to fix it. If theres anyone who can help me
please do so
Perhaps with some Documentation...
Very much thx