Code: Select all
movableText->setCaption((Ogre::String&)CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)"Edit")->getText());
When i put this form one error occur in the execution the program. The function setCaption have how parameters Ogre::String.
When i put Ogre::String or Ogre::String* appear the message when i compile
.\src\AplicacaoListener.cpp(566) : error C2440: 'type cast' : cannot convert from 'const CEGUI::String' to 'Ogre::String *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
i try too the code:
Code: Select all
CEGUI::String tta = CEGUI::WindowManager::getSingleton().getWindow((CEGUI::utf8*)"Edit")->getProperty("Text");
const char* ttb = tta.c_str();
movableText->setCaption(ttb);
this form one error occour in the execution of program and show the message:
Cannot create D3D9 vertex buffer: Invalid Call
File: ..\src\OgreD3D9HardwareVertexBuffer.cpp
line: 58