Binary data to wxString

Piotr Starczewski pstarczewski at o2.pl
Mon Dec 11 03:46:48 PST 2006


What do you mean by "not working"? I have used it many times even to 
create strings from buffers received from external libraries and I 
didn't have any problem. Try this forum thread:
http://wxforum.shadonet.com/viewtopic.php?t=10153&highlight=

Regards,
Peter


Lloyd wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>
>
>   




More information about the wx-users mailing list