#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?

Recommended Answers

All 2 Replies

Member Avatar for jencas
frame -> [U]S[/U]how(true);

o wow, thank you that worked

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.