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

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Donner
Just popping in
Just popping in
Posts: 9
Joined: Wed Jul 23, 2008 12:23

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

Postby Donner » 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:

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.
Last edited by Donner on Tue Jul 29, 2008 13:39, edited 1 time in total.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Tue Jul 29, 2008 13:01

Hi, and welcome :)

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

CE.

Donner
Just popping in
Just popping in
Posts: 9
Joined: Wed Jul 23, 2008 12:23

Postby Donner » Tue Jul 29, 2008 13:31

Hey, it works! :D

Thanks!!

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


Return to “Help”

Who is online

Users browsing this forum: No registered users and 2 guests