Page 1 of 1

Getting started with CEGUI and VC2005

Posted: Mon Apr 16, 2007 20:59
by sipickles
Hello,

I dabbled with CEGUI some time ago when I was using VC2003.

Now I am using VC 2005 express, I am having very rundimentary problems. When I try to create the CEGUI object, it crashes with an unhandled exception. The sample files crash in a similar manner (but dont running the openGL driver).

To get the app to run at all, I had to download msvcp71d.dll and msvcr71d.dll. My pc has the release version of these files but not the debug ones. These are VC2003 files. Might this be something to do with my problem?

Here's my simple code:

Code: Select all

g_CEGUI         = new CEGUI::DirectX9Renderer( g_device, 0 );
g_CEGUISystem   = new CEGUI::System( g_CEGUI );


It crashes at the first line. g_device is a valid DirectX9 device at this point too.

Where do I begin?

Thanks

Simon

EDIT:

I've noticed the samples will run with the openGL driver, but crash if I use the DX9renderer. Can anyone help? (oops! I already said that!)

Posted: Wed Apr 18, 2007 14:26
by Pompei2
Did you compile the CEGUI libs/dlls yourself or did you use the precompiled binaries ?

If you compiled them yourself, check that ALL libraries you compiled (including the dependencies) where compiled with the same options (same C runtime lib, same threading and same debug/release).

Posted: Sun Apr 22, 2007 18:04
by sipickles
Ok, I've bit the bullet and compiled from source.... Guess what? It works!

:)