Binary data to wxString

Lloyd lloyd at cdactvm.in
Tue Dec 12 03:30:08 PST 2006


I tried it, but it is not working!  (I have set the last byte to '\0' as
well).

On Mon, 2006-12-11 at 11:19 +0000, Piotr Starczewski wrote:
> Try wxString::FromAscii(char*):
> http://wxwidgets.org/manuals/2.6.3/wx_wxstring.html#wxstringfromascii
> 
> Regards,
> Peter
> 
> 
> Lloyd wrote:
> > Hi,
> >   Is there any way to convert a Binary data buffer (char*) to a
> > wxString?
> >
> > Because most probably my buffer will contain ASCII characters. If I
> > could convert this buffer to a wxString, I could have used it as an
> > input to the wxStringTokenizer to get the tokens in the buffer.
> >
> > orelse any suggestions to get the tokens from my buffer?
> >
> > Thanks in advance,
> > Lloyd
> >
> >
> > ______________________________________
> > Scanned and protected by Email scanner
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> > For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> >
> >
> >
> >   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org


______________________________________
Scanned and protected by Email scanner




More information about the wx-users mailing list