Page 1 of 1

getMesh: problems with C++

Posted: Fri Oct 20, 2006 7:53 pm
by Nils:D
Hi,

i said it weeks ago in nother words: "I am a delphi programmer".
Cause i have sometimes little problems with C++. It's a simple question: How must i change the getMesh-Parameters so that nothing errors appears ?
error: no matching function for call to 'irr::scene::ISceneManager::getMesh(const wchar_t*)

Code: Select all

IGUIFileOpenDialog* dialog = (IGUIFileOpenDialog*)event.GUIEvent.Caller;
scene::IAnimatedMesh* tower = smgr->getMesh(dialog->getFilename());

Posted: Fri Oct 20, 2006 8:25 pm
by CodeDog
Try

Code: Select all

core::stringc str = dialog->getFilename();	
scene::IAnimatedMesh* tower = smgr->getMesh(str.c_str()); 
and See if that works.

Posted: Sat Oct 21, 2006 7:18 am
by Nils:D
Thx, that works :)