ever read much on c++ ? <div><br></div><div>This seems to be a lack of understanding of the tools you are using to do something complex.</div><div>Perhaps its easier to do one of the following : </div><div>1) Search the mailing list (if someone has done it, its on there) </div>
<div>2) Learn more about c++ and what it is that it wants.</div><div><br></div><div>Id like to spend to time giving this example but if you cannot see the gap, </div><div>you need to look for the missing pieces (which is the c++ stuff).</div>
<div><br></div><div><br><br><div class="gmail_quote">On Mon, Mar 28, 2011 at 5:26 PM, ingmar wirths <span dir="ltr"><<a href="mailto:ingmania@googlemail.com">ingmania@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
i'm getting a little frustrated trying to put the content of a packet<br>
into a string.<br>
What i simply want to do is something like:<br>
<br>
std::string my_string (packet->data, packet->dataLength);<br>
<br>
This doesn't compile however. I kind of get the idea why not, fiddled<br>
around a little,<br>
but could'nt get it working.<br>
<br>
I guess someone did this before, any ideas?<br>
<br>
Thanks,<br>
ingmar<br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</blockquote></div><br></div>