[vlc-devel] [Fwd: wxWindows problem]

Steve Lhomme steve.lhomme at free.fr
Mon Apr 4 21:49:31 CEST 2005


It seems that it got lost the first time...

-------- Message original --------
Sujet: wxWindows problem
Date: Sat, 02 Apr 2005 22:10:32 +0200
De: Steve Lhomme <steve.lhomme at free.fr>
Pour: vlc-devel at videolan.org

Hi,

Since I upgraded lots of internal code of VLC to the latest SVN, I can't
manage to use pre-compiled libwxwindows_plugin.dll anymore. And
impossible to find why since it doesn't contain valuable debugging info...

I tried to compile this plugin again on my own, using the latest/fresh
wxWidget 2.5.4 release, with MSVC. And I got numerous compilation
errors. After digging a bit in the code, it seems the current code using
wxWindows has some serious flaws. Here is an example :

I compiled message.cpp alone and got the following error log :

Compiling...
messages.cpp
d:\Perso\Programmes\Videolan\work\modules\gui\wxwindows\messages.cpp(57)
: error C2440: 'type cast' : cannot convert from 'void (__thiscall
wxvlc::Messages::* )(wxCommandEvent &)' to 'wxCloseEventFunction'
          Pointers to members have different representations; cannot cast
between them

I thought it could be a flaw of MSVC, but it's not. OnClose is defined as :

void Messages::OnClose( wxCommandEvent& );

So it seems MSVC cannot cast wxCommandEvent to wxCloseEvent, which is
right since you have the following class heritage in wxWindows :

wxEvent -> wxCommandEvent
          -> wxCloseEvent

Am I getting something wrong, or should the code be improved/cleaned ?
If so, could someone have a look at the compilation log file attached ?

thx

-- 
robUx4 on blog <http://robux4.blogspot.com/>


-- 
robUx4 on blog <http://robux4.blogspot.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050404/8df0ea1b/attachment.htm>


More information about the vlc-devel mailing list