#include "wx/wx.h"
#endif
-#if !wxUSE_RESOURCES
- #error "You should set wxUSE_RESOURCES to 1 to compile this sample"
+#include "wx/deprecated/setup.h"
+
+#if !wxUSE_WX_RESOURCES
+ #error "You should set wxUSE_WX_RESOURCES to 1 to compile this sample"
#endif
#if wxUSE_UNICODE
// #error "This sample can't be compiled in Unicode mode."
#endif // wxUSE_UNICODE
-#include "wx/resource.h"
+#include "wx/deprecated/resource.h"
#include <ctype.h>
#include "resource.h"
{
MyDialog *dialog = new MyDialog;
- if (dialog->LoadFromResource(this, wxT("dialog1")))
+ if (wxLoadFromResource(dialog, this, wxT("dialog1")))
{
wxTextCtrl *text = (wxTextCtrl *)wxFindWindowByName(wxT("multitext3"), dialog);
if (text)