GetIDsOfNames returning -1
-
Hi, I am writting a COM app using the MFC wrappers There are however certain methods/properties which don't have C/C++ prototypes so I decided to use native OLE functions I never got by GetIDsOfNames as what ever method name I insert I get a -1 I have tried native OLE
CoInitialize(NULL); //native ole CLSID clsid; // initialization HRESULT hr = CLSIDFromProgID(L"Excel.Application",&clsid);
and the MFC wrappers function
_application::CreateDispath
as this method populates
m_lpDispatch
And whatever method property I use I get -1 Any help appreciated
-
Hi, I am writting a COM app using the MFC wrappers There are however certain methods/properties which don't have C/C++ prototypes so I decided to use native OLE functions I never got by GetIDsOfNames as what ever method name I insert I get a -1 I have tried native OLE
CoInitialize(NULL); //native ole CLSID clsid; // initialization HRESULT hr = CLSIDFromProgID(L"Excel.Application",&clsid);
and the MFC wrappers function
_application::CreateDispath
as this method populates
m_lpDispatch
And whatever method property I use I get -1 Any help appreciated