Hi, and welcome
Firstly, I had a look and there is an error in the tutorial as regards to the way that cast is presented. Apologies for that mistake; I wonder how many other people have been caught by that - at least one, since they posted a while ago, but it didn't occur to me that the tutorial had the incorrect cast usage - what a tool I am
Anyway, thanks for that. And the correct usage should indeed be:
Code: Select all
CEGUI::DefaultResourceProvider* rp =
static_cast<CEGUI::DefaultResourceProvider*>(CEGUI::System::getSingleton().getResourceProvider());
However, you indicate that you've tried this, can you let us know the error you get in this case? Without the other error I can only guess at the cause, so at this stage I'll recommend you ensure you have included the required headers, which in this case is "CEGUIDefaultResourceProvider.h".
HTH
CE.
P.S. I'll fix the tutorial immediately after this session answering forum posts
[edit]
P.P.S. This is not a simple text fix - the article source is correct. It's actually an issue related to something else, I'll look into fixing it over this weekend, though it's a little more involved now; it also means that all other code on the Wiki will be affected by this, arrrgh!
