I have a uchar buffer that needs to be sent. It can’t be converted to char.
I have a sample project that casts:
send(SOCKET s, void *buf, size_t length) { return send(s, buf, length, 0);
My attempt is:
err = send( ConnectSocket, (void*)buf, (int)strlen(sendbuf), 0 );
The only thing I know to be different is the version of VS(2008).
That line will not compile in my 2010 project. The error is cannot convert paramerter 2 void* to const char *
Try this: