this is my first try with CEGUI and i'm already stuck. I always receive a exception when i'm tryng to load the scheme. I just followed the tutorials and I fail

This is what i do
Code: Select all
// GUI is OpenGL and is initialized
CEGUI::OpenGLRenderer * renderer = new CEGUI::OpenGLRenderer (0, width, height); // this works
new CEGUI::System (renderer); // this works
// I have added the following code found in the CEGUIOpenGLBaseApp
CEGUI::DefaultResourceProvider* rp = (CEGUI::DefaultResourceProvider*)
(CEGUI::System::getSingleton().getResourceProvider());
rp->setResourceGroupDirectory("schemes", "../datafiles/schemes/");
rp->setResourceGroupDirectory("imagesets", "../datafiles/imagesets/");
rp->setResourceGroupDirectory("fonts", "../datafiles/fonts/");
rp->setResourceGroupDirectory("layouts", "../datafiles/layouts/");
rp->setResourceGroupDirectory("looknfeels", "../datafiles/looknfeel/");
rp->setResourceGroupDirectory("lua_scripts", "../datafiles/lua_scripts/");
// all is success full.
try
{
CEGUI::SchemeManager::getSingleton().loadScheme("../datafiles/schemes/TaharezLook.scheme");
}
catch(CEGUI::Exception &ex)
{
CEGUI::String strDesc = ex.getMessage();
}
the Message i receive is "Default ResourceProvider::load - TaharezLook.scheme does not exist".
What am i missing, I really don't see it.
Thanks in advance.