How can I fix this so it will let me compare the two?
note, the error is at the for loop.
string Socket::Recv() {
/* Get socket size before recv'ing */
while (size == 0)
ioctlsocket(client, FIONREAD, &size);
/* Create a 'string (characters)' the size of the information being recv in order to add \0 for string conversion */
char *msg = new char[size + 1];
/* Recv information that the socket is sending us */
length = recv(client, msg, size, 0);
/* Put into an empty string */
msg[size] = '\0';
for (int i = 0; i < msg[size]; i++) {
if(msg[i] == ":") {
msg[i] == "";
}
}
/* Output message, and destroy possile Memory leak */
cout << msg;
delete[] msg;
}