wxTaskBarIcon help

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

Matt,

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

Open Watcom Make Version 1.7 
Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved. 
Source code is available under the Sybase Open Watcom Public License. 
See http://www.openwatcom.org/ for details. 
	wpp386 -bt=nt -zq -fo=wat_dll\wxTaskBarIcon.obj /bd /xs     -d__WXMSW__     -dwxNO_THREADS -dWXEUMSW -d_UNICODE 
-i=C:\EUPHORIA\wxWidgets-2.8.7\lib\wat_dll\mswu -DWX_LIB_BUILD=13 -i=C:\EUPHORIA\wxWidgets-2.8.7\include -w0 -dWXUSINGDLL 
-i=C:\EUPHORIA\wxWidgets-2.8.7\lib\wat_dll\mswu /d1 -dNOPCH   .\wxTaskBarIcon.cpp 
	wlink runtime windows=4.0 @wat_dll\wxeu.lbc @wat_dll\exports.lbc 
Error! E2028: near wxString::wxString( int ) is an undefined reference 
file wat_dll\wxTaskBarIcon.obj(C:\EUPHORIA\wxEuphoria\wxeu\trunk\wxTaskBarIcon.cpp): undefined symbol near wxString::wxString( int ) 


Here's the code:

// For compilers that support precompilation, includes "wx/wx.h". 
#include "wx/wxprec.h" 
 
#ifdef __BORLANDC__ 
    #pragma hdrstop 
#endif 
 
#ifndef WX_PRECOMP 
    #include "wx/wx.h" 
#endif 
#include "alldefs.h" 
#include "wxeu.h" 
#include "wx/taskbar.h" 
 
 
extern "C"{ 
class EuTaskBarIcon: public wxTaskBarIcon 
{ 
public: 
    EuTaskBarIcon() {} 
    wxMenu * m_Menu; 
    virtual wxMenu *CreatePopupMenu(); 
}; 
 
wxMenu *EuTaskBarIcon::CreatePopupMenu() 
{ 
    m_Menu = new wxMenu; 
    return m_Menu; 
} 
 
object WXEUAPI new_wxTaskBarIcon(object params) 
{ 
    wxDeRefDS( params ); 
     
    EuTaskBarIcon * icon = new EuTaskBarIcon(); 
    return BOX_INT( icon ); 
} 
 
object WXEUAPI get_taskbar_menu( int taskbar ) 
{ 
    return BOX_INT( ((EuTaskBarIcon*)taskbar)->m_Menu ); 
} 
 
void WXEUAPI set_taskbar_icon( int taskbar, int icon, object tooltip ) 
{ 
    wxIcon ico = (wxIcon)icon; 
    wxString str = get_string(tooltip); 
    wxDeRefDS( tooltip ); 
     
    ((EuTaskBarIcon*)taskbar)->SetIcon( ico, str ); 
} 
 
} 

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu