use CLSCTX_ALL instead of CLSCTX_LOCAL_SERVER in CreateInstance() (#9868)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -539,7 +539,7 @@ bool wxAutomationObject::CreateInstance(const wxString& classId) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
// start a new copy of Excel, grab the IDispatch interface
|
// 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."));
|
wxLogWarning(wxT("Cannot start an instance of this class."));
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user