main.cpp:141: request for member `c_str' in `
(*(namebox->irr::gui::IGUIElement::_vptr$IUnknown + 52))(namebox)', which is
of non-aggregate type `const wchar_t*'
This is first time dev-c++ ever thru an error i dont know what it means
You could do a couple different things here. The getText() function return the text from the box as a pointer to a wchar_t array. The irrlicht 'core::stringc' stirng class has an operator which will convert the wchar_t* array into the core::stringc format ( which is standard ascii style c string ).