Question on GetIDsOfNames
Hello,
I have a newbie question, given the following source code:
// Execute the specified method.
void CCalcCliRpcCppDlg::Execute(OLECHAR *pMethodName)
{
if(Connect())
{
HRESULT hr;
DISPID dispid;
DISPPARAMS dispparams;
VARIANTARG params[2];
VARIANT result;
CString ParamText;
EXCEPINFO ExceptInfo;
// Get dispatch ID corresponding to method name.
hr = m_pSoapClient->GetIDsOfNames(IID_NULL, &pMethodName, 1,
LOCALE_SYSTEM_DEFAULT, &dispid);
.........
Quote:
}
My interpretaion, pMethodName is the address of a character string.
So in the following line, what does &pMethodName stand for ? and why is it
neccessary?
hr = m_pSoapClient->GetIDsOfNames(IID_NULL, &pMethodName, 1,
LOCALE_SYSTEM_DEFAULT, &dispid);
Why not
hr = m_pSoapClient->GetIDsOfNames(IID_NULL, pMethodName, 1,
LOCALE_SYSTEM_DEFAULT, &dispid);
Thanks in advance