STDMETHODIMP CJavaObject::Invoke(DISPID dispidMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS* pdispparams, VARIANT* pvarResult, EXCEPINFO* pexcepinfo, UINT* puArgErr) { return InvokeEx(dispidMember, lcid, wFlags, pdispparams, pvarResult, pexcepinfo, NULL); }
// this is the obsolete component interface // this present implementation either tries to call InvokeEx, or returns an error; STDMETHODIMP RawComponent::Invoke(IMgaProject* gme, IMgaFCOs *models, long param) { #ifdef SUPPORT_OLD_INVOKE CComPtr<IMgaFCO> focus; CComVariant parval = param; return InvokeEx(gme, focus, selected, parvar); #else if(interactive) { AfxMessageBox("This component does not support the obsolete invoke mechanism"); } return E_MGA_NOT_SUPPORTED; #endif }