No, it's recv() Win32 API wont compile with std::string. Thanks though.
I hope it's good that way, I use memcpy() cause it's a binary string.
Code:int main() { char * Buf = new (nothrow)char[1024]; if(Buf == 0) return 1; char Temp[1024]; strcpy(Buf, "hello"); // just for the test memcpy(Temp, Buf, 6); delete[] Buf; Buf = new (nothrow)char[2048]; if(Buf == 0) return 1; memcpy(Buf, Temp, 6); delete[] Buf; return 0; }