diff --git a/samples/wizard/wizard.cpp b/samples/wizard/wizard.cpp index c405271857..5268716caa 100644 --- a/samples/wizard/wizard.cpp +++ b/samples/wizard/wizard.cpp @@ -313,10 +313,10 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnRunWizard(wxCommandEvent& WXUNUSED(event)) { - wxWizard *wizard = wxWizard::Create(this, -1, - "Absolutely Useless Wizard", - BMP_WIZARD_1); - + wxWizard *wizard = new wxWizard(this, -1, + "Absolutely Useless Wizard", + BMP_WIZARD_1); + // a wizard page may be either an object of predefined class wxWizardPageSimple *page1 = new wxWizardPageSimple(wizard); wxStaticText *text = new wxStaticText(page1, -1,