]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/mediaplayer/mediaplayer.cpp
Also reset DatePicker property editor's global pointer (fixes #11787)
[wxWidgets.git] / samples / mediaplayer / mediaplayer.cpp
index ceaf85d9c3c937430def51f35a3e29f677e7c7a8..e06f6d17330a3d8041f9fd4b369f03ce2e030172 100644 (file)
 #include "wx/filename.h"    // For wxFileName::GetName()
 #include "wx/config.h"      // for native wxConfig
 
+// Under MSW we have several different backends but when linking statically
+// they may be discarded by the linker (this definitely happens with MSVC) so
+// force linking them. You don't have to do this in your code if you don't plan
+// to use them, of course.
+#if defined(__WXMSW__) && !defined(WXUSINGDLL)
+    #include "wx/link.h"
+    wxFORCE_LINK_MODULE(wxmediabackend_am)
+    wxFORCE_LINK_MODULE(wxmediabackend_qt)
+    wxFORCE_LINK_MODULE(wxmediabackend_wmp10)
+#endif // static wxMSW build
+
 #ifndef __WXMSW__
     #include "../sample.xpm"
 #endif