0
#include <wx/wx.h>

class Hello : public wxApp
{
    public:
        virtual bool OnInit();
};

IMPLEMENT_APP(Hello)

bool Hello::OnInit()
{
    wxFrame *frame = new wxFrame(NULL, -1, _T("Hello"), wxPoint(60, 70), wxSize(500, 600));

    frame -> show(true);

    SetTopWindow(frame);

    return true;
}

C:\Documents and Settings\Levi\Desktop\C+++\Makefile.win [Build Error] exe: *** [Output/MingW/Project1.exe] Error 1

Why do i get this error when i try to compile a simple wxFrame app in wxDev-cpp

thanks

Edit:


Well, im an idiot, i didnt have my source file saved lol. But the new question is, my compiler says show is not a member of wxFrame, so how am i supposed to show the actual window?

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by clutchkiller
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.