Re: wxTaskBarIcon help
- Posted by mattlewis (admin) Feb 18, 2009
- 1115 views
ghaberek said...
I'm trying to wrap wxTaskBarIcon, and I'm doing something wrong. I just committed wxTaskBarIcon.cpp. When I try to build the library, I get the following error. I'm not sure what I'm doing wrong.
Stupid pointer tricks:
wxIcon ico = (wxIcon)icon; ...should be... wxIcon ico = *(wxIcon*)icon;The int icon parameter is really a pointer, but since you need to pass a reference, you can dereference it like that. You could alternatively do this:
wxIcon* ico = (wxIcon*)icon; ... ((EuTaskBarIcon*)taskbar)->SetIcon( *ico, str );I think the weird error was probably due to the compiler trying too hard to construct a wxIcon object from an int.
Also, how are you generating the exports? It's always missing some:
Failed to link function: +get_staticbitmap Failed to link procedure: +set_mdi_child_title Failed to link procedure: +set_staticbitmap Failed to link variable: null_pen Failed to link variable: null_brushI committed r371 fixing wxTaskBarIcon.cpp and the exports.
Matt