Page 1 of 1

Problem with undefined class

Posted: Tue Feb 06, 2007 18:45
by danharibo

Code: Select all

c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(10) : error C2664: 'void CEGUI::Window::addChildWindow(const CEGUI::String &)' : cannot convert parameter 1 from 'CEGUI::FrameWindow *' to 'const CEGUI::String &'
        Reason: cannot convert from 'CEGUI::FrameWindow *' to 'const CEGUI::String'
        No constructor could take the source type, or constructor overload resolution was ambiguous
c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(11) : error C2027: use of undefined type 'CEGUI::FrameWindow'
        c:\ogresdk\include\cegui\ceguiforwardrefs.h(80) : see declaration of 'CEGUI::FrameWindow'
c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(11) : error C2227: left of '->setPosition' must point to class/struct/union/generic type
c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(12) : error C2027: use of undefined type 'CEGUI::FrameWindow'
        c:\ogresdk\include\cegui\ceguiforwardrefs.h(80) : see declaration of 'CEGUI::FrameWindow'
c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(12) : error C2227: left of '->setSize' must point to class/struct/union/generic type
c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(13) : error C2027: use of undefined type 'CEGUI::FrameWindow'
        c:\ogresdk\include\cegui\ceguiforwardrefs.h(80) : see declaration of 'CEGUI::FrameWindow'
c:\documents and settings\dan\my documents\visual studio 2005\projects\ror\ror_edit\ror_edit\window_save.cpp(13) : error C2227: left of '->setText' must point to class/struct/union/generic type

I have no idea how to fix this, thanks.

Posted: Tue Feb 06, 2007 21:37
by spannerman
Post the small of section of code where this happens. If I was a guessing man I'd saw you were passing a FrameWindow into a function that instead needs a CEGUI::String.