Re: Work with classes in C++



Hi

All source code are there:
http://cvs.sourceforge.net/viewcvs.py/winpackman/WinPackManGTK/src/

I'm changed the code and now loks like this:

class OptionsPane : public Gtk::Notebook
{
	public:
		OptionsPane(BaseObjectType* cobj, Glib::RefPtr<Gnome::Glade::Xml>& pGlade);

But Fails on execution time, in this line.

 mpGlade->get_widget("main_window", mpOptionsPane);

** (WPM_GLADE.exe:3888): CRITICAL **: Gnome::Glade::Xml::get_widget():
dynamic_cast<> failed.

I'm not sure that if this is the correct way to do it.

Un saludo
Carlos Garcés

2006/2/27, rob page <page rob gmail com>:
> I think it would help if you could show the OptionsPane constructer,
> as I think this is where the problem might be occuring.
>
> Rob.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]