converting text from EditBox
Posted: Fri Nov 10, 2006 4:24 pm
Hi I have a problem with converting text from EditBox to const wchar_t* . It seems to me, that const wchar_t* text = editbox->getText() doesn´t work correctly.
I´m trying to make a chat for my multiplayer game (using RakNet). I want to send text from EditBox to ListBox.
If I set text like text = L"hello" and send it it works fine but if I use text = EditBox->getText and send it text come absolutly jammed. But if I save text from edit box to const wchar_t* text and add line to listbox with value of text on same computer, it shows correct. Im really confused.
I´m trying to make a chat for my multiplayer game (using RakNet). I want to send text from EditBox to ListBox.
If I set text like text = L"hello" and send it it works fine but if I use text = EditBox->getText and send it text come absolutly jammed. But if I save text from edit box to const wchar_t* text and add line to listbox with value of text on same computer, it shows correct. Im really confused.