#include "wx/wx.h"
#endif
-#include <wx/msw/ole/automtn.h>
+#include "wx/msw/ole/automtn.h"
#ifndef __WXMSW__
#error "Sorry, this sample works under Windows only."
OleAuto_Test,
// controls start here (the numbers are, of course, arbitrary)
- OleAuto_Text = 1000,
+ OleAuto_Text = 1000
};
// ----------------------------------------------------------------------------
// `Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
// Create the main application window
MyFrame *frame = new MyFrame(_T("OleAuto wxWidgets App"),
wxPoint(50, 50), wxSize(450, 340));
return;
}
}
-