This line can be wrong if compiled when char != 1.Code:memcpy(static_cast<void *>(data), static_cast<void *>(data_), bytesRecorded);
Binary String? you mean like "01010101". Shouldn't that fit into chars? you can also cast char to unsigned char as well.Code:memcpy(static_cast<void *>(data), static_cast<void *>(data_), bytesRecorded * sizeof(char));
typedef basic_string<unsigned char> ustring;
At least it looks betterOriginally Posted by THEARTOFWEB
![]()




Reply With Quote