]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/ole/activex.cpp
Include wx/menu.h according to precompiled headers of wx/wx.h (with other minor clean...
[wxWidgets.git] / src / msw / ole / activex.cpp
index 4b5a415e64389781ff6f7e4162037c69869c0da1..108bd936b982096aecd4cd3e4d02e00968e89a77 100644 (file)
     #pragma hdrstop
 #endif
 
     #pragma hdrstop
 #endif
 
-#include "wx/dcclient.h"
+#ifndef WX_PRECOMP
+    #include "wx/dcclient.h"
+#endif
+
 #include "wx/math.h"
 
 // I don't know why members of tagVARIANT aren't found when compiling
 #include "wx/math.h"
 
 // I don't know why members of tagVARIANT aren't found when compiling
@@ -946,7 +949,7 @@ void wxActiveXContainer::CreateActiveX(REFIID iid, IUnknown* pUnk)
                 hret = cp->Advise(new wxActiveXEvents(this, ta->guid),
                                   &adviseCookie);
                 wxASSERT_MSG( SUCCEEDED(hret),
                 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)
                             );
             }
         }
                             );
             }
         }