Retrieve the Menu string
Example code
CComPtr<IISmpCommands>m_IISMPCommands; HRESULT hr; BSTR bstrMenuString; long lCmdID; hr=m_IISMPCommands.CoCreateInstance(CLSID_ISmpCommands); if(FAILED(hr)) { AfxMessageBox(_T("IISmpCommandsInterface initialisation failed")); return FALSE; } m_IISMPCommands->get_MenuString(m_lSessionID,lCmdID,&bstrMenuString); CString strMenuString(bstrMenuString); MessageBox(strMenuString,_T("Menu String"),MB_ICONINFORMATION|MB_OK);