none
TYPE_E_ELEMENTNOTFOUND Error from GetIDsOfNames RRS feed

  • Question

  • Hello , 

     i am getting the hresult from the function "GetIDsOfNames" function is 8002802B (TYPE_E_ELEMENTNOTFOUND) but actually i should expect DISP_E_UNKNOWNNAME . what is the reason for this ??, This is the following code

     LPTSTR _names[6] = {Tokens[1].GetBuffer(0), L"DBName", L"LOIDList", L"MoreOptions", L"Message", L"rslt"};
        DISPID _dispids[6];
        hresult = m_DispPtr->GetIDsOfNames(IID_NULL, _names, 6,
                                           LOCALE_USER_DEFAULT, _dispids);

    where tokens[1] contains one function of COm Object??

    Friday, January 10, 2020 12:26 PM