Page 1 of 1

[solved] Error by starting my compiled project (VC 2005)

Posted: Tue Jul 29, 2008 09:55
by Donner
Hi,

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.

Posted: Tue Jul 29, 2008 13:01
by CrazyEddie
Hi, and welcome :)

I think the issue could be that perhaps you do not have SP1 for MSVC++ 2005 installed?

CE.

Posted: Tue Jul 29, 2008 13:31
by Donner
Hey, it works! :D

Thanks!!

Well, now I'll play with the CEGUI the rest of the day :)