#include "wx/stattext.h"
#include "wx/button.h"
+#ifndef __WINDOWS__
+ #error "This sample is Windows-only"
+#endif
+
+#ifdef WXUSINGDLL
+ #error "This sample doesn't work with DLL build of wxWidgets"
+#endif
// ----------------------------------------------------------------------------
// GUI classes