// Purpose: Sample showing how to use wx from a DLL
// Author: Vaclav Slavik
// Created: 2009-12-03
-// RCS-ID: $Id$
// Copyright: (c) 2009 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#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