Try std::string my_string ((char*)packet->data, packet->dataLength); -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20110328/ac5d7c6b/attachment.html>