Console Demo Issue

bananu7

12-06-2009 18:55:20

Hi!
I've just decided to use MyGUI for my project. I was trying to copy a console demo code to it, and I get really strange issue.

I copied the class code, so there's now a "Console" class in my code.
I'm trying to use it like
Console * myConsole = new Console ();
However, it fails in BaseLayout constructor at following lines:

const std::string MAIN_WINDOW = "_Main";
mLayoutName = _layout;


MAIN_WINDOW ends up filled with some strange data, and mLayoutName is empty;
I've compiled the demo itself to check if that could be problem with Encoding or something, and it worked well.
Please, do you have any idea why this could happen?