For example:
Code: Select all
const wchar_t test[100]=L"command";
if (inputbox->getText()==test)
{
<Action here>
}
To try and debug this routine I even cout'ed the text from inside the editbox. Of course, directly cout'ing this led to a memory location being printed instead; but if I convert the string to a C-type string (using the stringc command) the program simply crashes, with no meaningful debug information.
I'm using Irrlicht 1.0, and I'm completely stumped for an answer.
I would be very thanful for any advice, or even a little example code I can test to see if I end up with the same result (as I have been unable to get getText() nor cstring working in any of my projects so far)
Thanks in advance