[solved] Error by starting my compiled project (VC 2005)
Posted: Tue Jul 29, 2008 09:55
Hi,
i made a Project with one code file (main.cpp) in VS 2005. Main.cpp contains just the following:
If I do not use CEGUI, the project runs very well (so I'm sure, that Irrlicht is configured correctly).
But when I include the CEGUI-Headers and the libs and write some CEGUI-Code (like above), it compiles correctly, but when I start the executable file, the following error appears:
(Its not the original error message, because I'm using a german Windows XP, but I hope the translation is understandible.
What should I do? I linked to the following libs:
and copied all DLLs from the bin/ directory (of the prebuilded VC2005-SDK) into the application directory.
Whats wrong?
I already read some threads, but I didn't find a solution...
Thanks a lot
D.
i made a Project with one code file (main.cpp) in VS 2005. Main.cpp contains just the following:
Code: Select all
#include <irrlicht.h>
#include <CEGUI.h>
#include <irrlichtrenderer.h>
int main(void)
{
irr::IrrlichtDevice* device = irr::createDevice();
irr::video::IVideoDriver* driver = device->getVideoDriver();
irr::scene::ISceneManager* smgr = device->getSceneManager();
irr::gui::IGUIEnvironment* guienv = device->getGUIEnvironment();
CEGUI::IrrlichtRenderer* myRenderer = new CEGUI::IrrlichtRenderer(device, true);
new CEGUI::System(myRenderer);
while(device->run())
{
driver->beginScene(true, true, irr::video::SColor(255,100,101,140));
smgr->drawAll();
guienv->drawAll();
CEGUI::System::getSingleton().renderGUI();
driver->endScene();
}
device->drop();
return 0;
}
If I do not use CEGUI, the project runs very well (so I'm sure, that Irrlicht is configured correctly).
But when I include the CEGUI-Headers and the libs and write some CEGUI-Code (like above), it compiles correctly, but when I start the executable file, the following error appears:
The application couldn't be initialized correctly (0xc0150002).
Click "OK" to exit.
(Its not the original error message, because I'm using a german Windows XP, but I hope the translation is understandible.
What should I do? I linked to the following libs:
Code: Select all
Irrlicht.lib
IrrlichtRenderer_d.lib
CEGUIBase_d.lib
CEGUIFalagardWRBase_d.lib
and copied all DLLs from the bin/ directory (of the prebuilded VC2005-SDK) into the application directory.
Whats wrong?
I already read some threads, but I didn't find a solution...
Thanks a lot
D.