title: COM IDispatch->Invoke fails with error DISP_E_EXCEPTION
body: <p>I'm trying to invoke a IDispatch->Invoke call to get the name of the IDispatch object and the method fails with error DISP_E_EXCEPTION.
  The property I'm trying to get is "accName".
  Below is the code that tries to do this:</p>
  
  <pre><code>HRESULT getParentName(IAccessible* pAcc) {
      IDispatch *parent;
      HRESULT hr;
  
   if ((hr = pAcc-&gt;get_accParent(&amp;parent)) == S_OK) {
      DISPID dispid;
      WCHAR *member = L"accName";
      DISPPARAMS dispparams = { NULL, NULL, 0, 0 };
  
      VARIANT result;
      result.lVal = CHILDID_SELF;
      result.vt = VT_I4;
  
      hr = parent-&gt;GetIDsOfNames(IID_NULL, &amp;member, 1, LOCALE_SYSTEM_DEFAULT, &amp;dispid);
      if (SUCCEEDED(hr)) {
          //OK till now
          EXCEPINFO exc;
          UINT numErrs;
          hr = parent-&gt;Invoke(dispid, IID_NULL, LOCALE_SYSTEM_DEFAULT,
              DISPATCH_PROPERTYGET, &amp;dispparams, &amp;result, &amp;exc, &amp;numErrs);
          if (hr == S_OK) {
              MessageBox(NULL, result.bstrVal, L"Got the name", MB_OK);
          } else {
          //fails with error DISP_E_EXCEPTION
          // exception EXCEPINFO return nothing
          }
  
      }
  </code></pre>