Hm, strange. The
wxbase31u_net.lib
was actually missing for the socketClient. I wonder why wxWidgets310 wouldn't miss it, though.
Well, I still have some linker errors left:
LNK2001 unresolved external symbol "class wxEventTypeTag<class wxTaskBarIconEvent> const wxEVT_TASKBAR_RIGHT_UP" (?wxEVT_TASKBAR_RIGHT_UP@@3V?$wxEventTypeTag@VwxTaskBarIconEvent@@@@B)
.h
.cpp
Code: Select all
wxBEGIN_EVENT_TABLE(MyTaskBarIcon, wxTaskBarIcon)
//[...]
EVT_MENU(ID_TASK_BASE_SETTINGS, MyTaskBarIcon::CommandEventHandler)
EVT_TASKBAR_LEFT_DCLICK (MyTaskBarIcon::OnLeftButtonDClick)
EVT_TASKBAR_RIGHT_UP (MyTaskBarIcon::OnRightButtonUp)
//[...]
wxEND_EVENT_TABLE()
Is the event table deprecated or something? I use them in several (older) classes, but I get the linker errors only in one class (for now).
Thanks so far
Natu
EDIT:
If I use Bind instead, he complains that "EVT_TASKBAR_LEFT_DCLICK" is not defined. And if I nevertheless go the the definition of it (F12) I get:
taskbar.h
Code: Select all
#define wx__DECLARE_TASKBAREVT(evt, fn) \
wx__DECLARE_EVT0(wxEVT_TASKBAR_ ## evt, wxTaskBarIconEventHandler(fn))
//[...]
#define EVT_TASKBAR_LEFT_DCLICK(fn) wx__DECLARE_TASKBAREVT(LEFT_DCLICK, fn)
#define EVT_TASKBAR_RIGHT_DCLICK(fn) wx__DECLARE_TASKBAREVT(RIGHT_DCLICK, fn)
Or I use:
Code: Select all
Bind(wxEVT_TASKBAR_LEFT_DCLICK, &MyTaskBarIcon::OnLeftButtonDClick, this);
... in which case I have the same linker erroras I have with the event table. They are defined properly, as far as I can see, unless I am really missing another lib here.
EDIT2: I was actually missing "
wxmsw31u_adv.lib" too. Shame that I had to guess which dependencies I need instead of reading it in the documentation next to the include reminder. At least one can copy all needed libs from the matching sample, which I will do more thorough in future.