GetPeerAuthDataISCL Example for C++ 6.0 and later
{
COleVariant vBuf;
long nLen;
m_pLEADDicomNet->GetPeerAuthDataISCL (m_pLEADDicomNet->GethNet (), vBuf, &nLen);
long Byte_1st, Byte_last, index_1st=0, index_last=nLen - 1;
SafeArrayGetElement(vBuf.parray, &index_1st, &Byte_1st);
SafeArrayGetElement(vBuf.parray, &index_last, &Byte_last);
CString strMsg;
strMsg.Format("1st byte of data = %ld, last byte of data = %ld", Byte_1st, Byte_last);
AfxMessageBox(strMsg);
}