I'm on to deriving my own class from IGUIWindow, trying to do it similar to the tutorial3 (http://irrlicht.sourceforge.net/tut003.html). My class so far looks like this:
Code: Select all
// infowindow.h
#pragma once
class CInfoWindow: public irr::gui::IGUIWindow
{
public:
CInfoWindow(irr::gui::IGUIEnvironment *env, irr::s32 id, irr::core::rect<irr::s32> rec);
~CInfoWindow(void);
virtual irr::gui::IGUIButton* getCloseButton(void);
virtual irr::gui::IGUIButton* getMinimizeButton(void);
virtual irr::gui::IGUIButton* getMaximizeButton(void);
};
Code: Select all
// infowindow.cpp
#include "globals.h"
CInfoWindow::CInfoWindow(irr::gui::IGUIEnvironment *env,
irr::s32 id, irr::core::rect<irr::s32> rec):
irr::gui::IGUIWindow(env, env->getRootGUIElement(), id, rec)
{}
CInfoWindow::~CInfoWindow(void)
{}
irr::gui::IGUIButton* CInfoWindow::getCloseButton(void)
{return(irr::gui::IGUIWindow::getCloseButton());}
irr::gui::IGUIButton* CInfoWindow::getMinimizeButton(void)
{return(irr::gui::IGUIWindow::getMinimizeButton());}
irr::gui::IGUIButton* CInfoWindow::getMaximizeButton(void)
{return(irr::gui::IGUIWindow::getMaximizeButton());}
I understand I'm missing something here (well, maybe missing the concept completely). Someone to enlighten me? Thank you very much.infowindow.obj : error LNK2019: Not resolved external symbol '"public: virtual class irr::gui::IGUIButton * __thiscall irr::gui::IGUIWindow::getCloseButton(void)" ...
miko