Re: wxTaskBarIcon help

new topic     » goto parent     » topic index » view thread      » older message » newer message
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. getlost

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_brush 
I committed r371 fixing wxTaskBarIcon.cpp and the exports.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu