Setting up CEGUI with VC2003 - help!
Posted: Sat Feb 25, 2006 16:11
Hi,
I am VERY new to CEGUI, and trying to get it working with my MSVC2003 project.
This is what I am doing:
#include "d3d9renderer.h"
CEGUI::DirectX9Renderer* m_CEGUI = new CEGUI::DirectX9Renderer(g_device);
new CEGUI::System(m_CEGUI);
I am getting this errors:
CLIENT.cpp(135) : error C2664: 'CEGUI::DirectX9Renderer::DirectX9Renderer(CEGUI::DirectX9Renderer &)' : cannot convert parameter 1 from 'IDirect3DDevice9 *' to 'CEGUI::DirectX9Renderer &'
A reference that is not to 'const' cannot be bound to a non-lvalue
Can anyone help?
Also, what is this about? :
Macro defintion of max detected - undefining
Macro defintion of min detected - undefining
I am using those macros elsewhere so its a bit of an inconvenience that CEGUI undefs them!
Thanks
Simon
I am VERY new to CEGUI, and trying to get it working with my MSVC2003 project.
This is what I am doing:
#include "d3d9renderer.h"
CEGUI::DirectX9Renderer* m_CEGUI = new CEGUI::DirectX9Renderer(g_device);
new CEGUI::System(m_CEGUI);
I am getting this errors:
CLIENT.cpp(135) : error C2664: 'CEGUI::DirectX9Renderer::DirectX9Renderer(CEGUI::DirectX9Renderer &)' : cannot convert parameter 1 from 'IDirect3DDevice9 *' to 'CEGUI::DirectX9Renderer &'
A reference that is not to 'const' cannot be bound to a non-lvalue
Can anyone help?
Also, what is this about? :
Macro defintion of max detected - undefining
Macro defintion of min detected - undefining
I am using those macros elsewhere so its a bit of an inconvenience that CEGUI undefs them!
Thanks
Simon