Hello.
I'm trying to make CEGUI work for me with Dark GDK. I read this topic first before trying it: http://forum.thegamecreators.com/?m=forum_view&t=150376&b=22
Then I coded it to my test application:
#include "DarkGDK.h"
#include "CEGUI.h"
#include "RendererModules/directx9GUIRenderer/d3d9renderer.h"
using namespace CEGUI;
void DarkGDK ( void )
{
LPDIRECT3DDEVICE9 device = dbGetDirect3DDevice( );
DirectX9Renderer* myRenderer = new DirectX9Renderer( device, 0 );
new CEGUI::System( myRenderer );
dbSyncOn( );
dbSyncRate( 60 );
while( LoopGDK( ) )
{
CEGUI::System::getSingleton( ).renderGUI( );
dbSync ( );
}
return;
}
Then, on my linker additional dependencies, I added:
CEGUIBase.lib d3dx9.lib DirectX9GUIRenderer.lib
My program compiled fine. The problem is I get an exception while calling
new CEGUI::System( myRenderer ); (
Unhandled exception at 0x773d42eb in 2d-Test2.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x0023edbc..)
Did I do everything right? Shouldn't it work? Please, I need help!
[href]null[/href]