Kirix Support Forums

compiling testapp errors (wxAuiToolBar)

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

compiling testapp errors (wxAuiToolBar)

Postby shibuza on Wed Apr 04, 2012 3:57 am

I am using Code Blocks. When I try to compile testapp I get the following errors:
-------------- Build: Debug Win32 in testapp ---------------
Compiling: testapp.cpp
C:\Temp\webconnect-1.1\testapp\testapp.cpp: In constructor ‘MyFrame::MyFrame(wxWindow*, wxWindowID, const wxString&, const wxPoint&, const wxSize&, long int)’:
C:\Temp\webconnect-1.1\testapp\testapp.cpp:396:5: fout: ‘wxAuiToolBar’ was not declared in this scope
C:\Temp\webconnect-1.1\testapp\testapp.cpp:396:19: fout: ‘toolbar’ was not declared in this scope
C:\Temp\webconnect-1.1\testapp\testapp.cpp:396:33: fout: expected type-specifier before ‘wxAuiToolBar’
C:\Temp\webconnect-1.1\testapp\testapp.cpp:396:33: fout: expected ‘;’ before ‘wxAuiToolBar’
Process terminated with status 1 (0 minutes, 1 seconds)
4 errors, 0 warnings


// create the main toolbar
Line 396:
Code: Select all
wxAuiToolBar* toolbar = new wxAuiToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
                                             wxAUI_TB_DEFAULT_STYLE);
    toolbar->SetToolBitmapSize(wxSize(24,24));
    toolbar->AddTool(ID_GoBack, wxT("Go Back"), wxArtProvider::GetBitmap(wxART_GO_BACK));
    toolbar->AddTool(ID_GoForward, wxT("Go Forward"), wxArtProvider::GetBitmap(wxART_GO_FORWARD));
    toolbar->AddTool(ID_GoHome, wxT("Go Home"), wxArtProvider::GetBitmap(wxART_GO_HOME));

    m_urlbar = new wxComboBox(toolbar, wxID_URL, wxT(""), wxPoint(0,0), wxSize(850,18));
    toolbar->AddControl(m_urlbar, wxT("Location"));

    toolbar->Realize();



Any help would be apreciated!
shibuza
Registered User
 
Posts: 1
Joined: Wed Apr 04, 2012 3:47 am

Return to wxWebConnect Questions, Thoughts & Feedback