Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / From wxMac 2.42. to wxMac 2.5.2

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. From wxMac 2.42. to wxMac 2.5.2
#4992
Posted by: belaran 2004-08-16 16:47:26
Hi !

I'm working on application wich use the wxMac 2.4.2. Now that i install wxMac 2.5.2, it won't compil anymore, what's changes should make on my source file ?
Somebody told me i should fix the Event Table ? Do you know how ?
Is there something else to change ?

Here is my code :

BEGIN_EVENT_TABLE(MainWindow, wxFrame)
   ...
    EVT_CLOSE( MainWindow::exit )
END_EVENT_TABLE();

and the error associated

MainWindow.cpp:94: error: invalid static_cast from type `void
   (MainWindow::*)(wxCommandEvent&)' to type `void
   (wxEvtHandler::*)(wxCloseEvent&)'


Thanks

Belaran
Message2. Re: From wxMac 2.42. to wxMac 2.5.2
#5021
Posted by: upCASE 2004-08-25 18:29:29
Hi!
Have you tried removing the ";" after END_EVENT_TABLE() ?
upCASE
-----------------------------------
If it was hard to write, it should be hard to read!- Do. Or do not. There is no try!
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Thu 2024-3-28  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0