Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-29 Thread Andre Arpin
> > The "self" can be a wxComboBox, wxChoice, wxListBox... and the > wxItemContainerImmutable class is along the chain of second base > classes for all of them. All wxLua userdata objects that wrap C++ > objects have a metatable that stores the classes' wxLuaBindClass > struct (wxlbind.h) which ca

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-27 Thread Andre Arpin
Andre Arpin writes: > > Andre > This previous message is redundant an was sent because the previous one did no appear within 24 hrs. Sorry for the noise. Andre -- Come build with us! The BlackBerry® Developer Confer

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-27 Thread Andre Arpin
John Labenski writes: > > wxLua 2.8.10 introduced multiple inheritance in the C++ bindings which > wxWidgets uses for the wxComboBox, wxChoice, and wxBitmapComboBox > classes. However, I was not aware that C++ compilers shift the vtable > of the second and higher base classes and therefore if yo

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-26 Thread John Labenski
On Sat, Sep 26, 2009 at 9:00 AM, Andre Arpin wrote: > John Labenski writes: > > Maybe I do not understand the problem but here is my suggestion. > Why not use dynamic cast since you seem to know which class. > C casting is a brute force method. We only know the class type at runtime, but dynamic

Re: [wxlua-users] Fix for multiple inheritance in the bindings

2009-09-26 Thread Andre Arpin
John Labenski writes: > > wxLua 2.8.10 introduced multiple inheritance in the C++ bindings which > wxWidgets uses for the wxComboBox, wxChoice, and wxBitmapComboBox > classes. However, I was not aware that C++ compilers shift the vtable > of the second and higher base classes and therefore if yo

[wxlua-users] Fix for multiple inheritance in the bindings

2009-09-25 Thread John Labenski
wxLua 2.8.10 introduced multiple inheritance in the C++ bindings which wxWidgets uses for the wxComboBox, wxChoice, and wxBitmapComboBox classes. However, I was not aware that C++ compilers shift the vtable of the second and higher base classes and therefore if you directly cast a void* pointer to