getMesh: problems with C++

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.
Post Reply
Nils:D
Posts: 24
Joined: Sat Sep 09, 2006 12:35 pm

getMesh: problems with C++

Post 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());
CodeDog
Posts: 106
Joined: Sat Oct 07, 2006 8:00 pm
Location: CA. USA
Contact:

Post by CodeDog »

Try

Code: Select all

core::stringc str = dialog->getFilename();	
scene::IAnimatedMesh* tower = smgr->getMesh(str.c_str()); 
and See if that works.
Nils:D
Posts: 24
Joined: Sat Sep 09, 2006 12:35 pm

Post by Nils:D »

Thx, that works :)
Post Reply