I am getting this wierd error:
invalid conversion from `char' to ` char*'
Code:void Recieve(int nBytes, int clientSocket, char inMessage) { while (nBytes){ nBytes = recv(clientSocket, inMessage, sizeof(inMessage), 0); } }
This is a discussion on Error within the C++ Programming forums, part of the General Programming Boards category; I am getting this wierd error: invalid conversion from `char' to ` char*' Code: void Recieve(int nBytes, int clientSocket, char ...
I am getting this wierd error:
invalid conversion from `char' to ` char*'
Code:void Recieve(int nBytes, int clientSocket, char inMessage) { while (nBytes){ nBytes = recv(clientSocket, inMessage, sizeof(inMessage), 0); } }
Keyboard Not Found! Press any key to continue. . .
wtf it posted twice....?
Keyboard Not Found! Press any key to continue. . .
inMessage...second param;
try &inMessage...
if that doesn't work look at the function prototype for recv();