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,
void MyFrame::OnWizardCancel(wxWizardEvent& WXUNUSED(event))
{
- wxLogStatus(this, "The wizard was cancelled.");
+ wxLogStatus(this, wxT("The wizard was cancelled."));
}