]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/activex.cpp
we don't need to override MSWTranslateMessage(), it was a wrong workaround for the...
[wxWidgets.git] / src / msw / ole / activex.cpp
index 4b5a415e64389781ff6f7e4162037c69869c0da1..23415001823e0cde63d73f42a8bb7c1c1dae6dd2 100644 (file)
     #pragma hdrstop
 #endif
 
-#include "wx/dcclient.h"
-#include "wx/math.h"
+#ifndef WX_PRECOMP
+    #include "wx/dcclient.h"
+    #include "wx/math.h"
+#endif
 
 // I don't know why members of tagVARIANT aren't found when compiling
 // with Wine
@@ -946,7 +948,7 @@ void wxActiveXContainer::CreateActiveX(REFIID iid, IUnknown* pUnk)
                 hret = cp->Advise(new wxActiveXEvents(this, ta->guid),
                                   &adviseCookie);
                 wxASSERT_MSG( SUCCEEDED(hret),
-                    wxString::Format(wxT("Cannot connect!\nHRESULT:%X"), hret)
+                    wxString::Format(wxT("Cannot connect!\nHRESULT:%X"), (unsigned int)hret)
                             );
             }
         }