If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
-
patrickniceboy
- Posts: 23
- Joined: Fri Apr 27, 2007 3:22 pm
- Location: Brazil
Post
by patrickniceboy »
xml->getNodeName(), it returns const wchar_t how can i convert it to const char * ???
but why?
look:
Code: Select all
if(!strcmp("node", xml->getNodeName())
strcmp declaration
Code: Select all
strcmp(const char * _Str1, const char * _Str2);
-
shogun
- Posts: 162
- Joined: Wed Sep 05, 2007 11:02 am
- Location: inside
Post
by shogun »
You should have a look at the board search, it has already been discussed.
Google for wcstombs and/or wcscmp.
Or try the following:
Code: Select all
if (irr::core::stringw(xml->getNodeName()) != L"node")