diff --git a/src/generic/wizard.cpp b/src/generic/wizard.cpp index 334c5859a5..8e88e0aa98 100644 --- a/src/generic/wizard.cpp +++ b/src/generic/wizard.cpp @@ -86,10 +86,12 @@ wxWizardPage::wxWizardPage(wxWizard *parent, { if ( resource != NULL ) { +#if wxUSE_RESOURCES if ( !LoadFromResource(this, resource) ) { wxFAIL_MSG(wxT("wxWizardPage LoadFromResource failed!!!!")); } +#endif // wxUSE_RESOURCES } m_PageBitmap = bitmap;