]> git.saurik.com Git - wxWidgets.git/commitdiff
use CLSCTX_ALL instead of CLSCTX_LOCAL_SERVER in CreateInstance() (#9868)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Aug 2008 11:57:55 +0000 (11:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 18 Aug 2008 11:57:55 +0000 (11:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/automtn.cpp

index 3fb683fbcfab46eb130ad91ba2f9a59721f4f121..b99c9c8d92a8bc3efd2b3386305bf457e938c774 100644 (file)
@@ -539,7 +539,7 @@ bool wxAutomationObject::CreateInstance(const wxString& classId) const
     }
 
     // start a new copy of Excel, grab the IDispatch interface
-    if (FAILED(CoCreateInstance(clsId, NULL, CLSCTX_LOCAL_SERVER, IID_IDispatch, (void**)&m_dispatchPtr)))
+    if (FAILED(CoCreateInstance(clsId, NULL, CLSCTX_ALL, IID_IDispatch, (void**)&m_dispatchPtr)))
     {
         wxLogWarning(wxT("Cannot start an instance of this class."));
         return false;