DEFINE_EVENT_TYPE obsolete?
Posted: Sun Oct 10, 2010 11:40 am
I am using wx from SVN. In event.h I can read that DEFINE_EVENT_TYPE is obsolete.
What can I use alternatively?
What can I use alternatively?
Official forum for the wxWidgets Cross-Platform GUI Toolkit
https://forums.wxwidgets.org/
Code: Select all
BFMainFrame::Instance()->GetEventHandler()->AddPendingEvent(wxCommandEvent(BF_EVENT_THREAD_END, BF_ID_MAINFRAME));
Code: Select all
wxDEFINE_EVENT(BF_EVENT_THREAD_END, wxCommandEvent);
Code: Select all
1>d:\garage\projekte\blackfisk\trunk\src\bfthread_backuprunner.cpp(32) : error C2371: 'BF_EVENT_THREAD_END': Neudefinition; unterschiedliche Basistypen
Code: Select all
new definition; different basic types
I still think thisAuria wrote:I think it could be that you left an old DECLARE_EVENT_TYPE macro around or so
What do you mean exactly?I think it could be that you left an old DECLARE_EVENT_TYPE macro around or so
Code: Select all
// this is typically in a header: it just declares MY_EVENT event type
wxDECLARE_EVENT(MY_EVENT, wxCommandEvent);
// this is a definition so can't be in a header
wxDEFINE_EVENT(MY_EVENT, wxCommandEvent);
this link is not a full list of changes, it is only an overview of new features. For the full list, see http://svn.wxwidgets.org/viewvc/wx/wxWi ... iew=markuprogue wrote:This change was not mentioned on the page
http://docs.wxwidgets.org/2.9.1/overvie ... nce28.html
I have an existence proof that this change breaks the build potentially in eleven of my projects.
Auria wrote:I don't speak german ...