|
From: @lex <sty...@gm...> - 2005-11-24 15:23:04
|
Hello!
I am using Dev-C++ 2.6.2 and wx-dev-cpp.
If I want to run this sample:
#include "wx/wx.h"
class MyFrame: public wxFrame
{
public:
MyFrame(const wxString& title)
: wxFrame((wxFrame *)NULL, -1, title)
{
wxMenu *menuFile = new wxMenu;
menuFile->Append(wxID_EXIT, "E&xit");
wxMenuBar *menuBar = new wxMenuBar;
menuBar->Append(menuFile, "&File");
this->SetMenuBar(menuBar);
}
void OnQuit(wxCommandEvent& event)
{
this->Close(true);
}
DECLARE_EVENT_TABLE()
};
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(wxID_EXIT, MyFrame::OnQuit)
END_EVENT_TABLE()
class MyApp: public wxApp
{
virtual bool OnInit()
{
MyFrame *frame = new MyFrame( "Hello World");
frame->Show(true);
this->SetTopWindow(frame);
return true;
}
};
IMPLEMENT_APP(MyApp)
I get the following messages:
[Resource error] no resources
C:\Documents and Settings\***\Desktop\projects\2\Makefile.win [Build
Error] [Project1_private.res] Error 1
What shall I do?
Thanks!
@lex
|