Getting started with CEGUI and VC2005

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

User avatar
sipickles
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Fri Feb 24, 2006 19:41
Location: Enfield, UK

Getting started with CEGUI and VC2005

Postby sipickles » Mon Apr 16, 2007 20:59

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!)

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Wed Apr 18, 2007 14:26

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).

User avatar
sipickles
Not too shy to talk
Not too shy to talk
Posts: 37
Joined: Fri Feb 24, 2006 19:41
Location: Enfield, UK

Postby sipickles » Sun Apr 22, 2007 18:04

Ok, I've bit the bullet and compiled from source.... Guess what? It works!

:)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 19 guests