IsAsyncOperations Example for C++ 6.0 and later
{
CString cStr;
//...Assume association has been created
if (m_pLEADDicomNet->IsAsyncOperations(m_pLEADDicomNet->GethPDU()) )
{
//get the operations counts
long lInvoked = m_pLEADDicomNet->GetInvokedOperationsCount(m_pLEADDicomNet->GethPDU());
long lPerformed = m_pLEADDicomNet->GetPerformedOperationsCount(m_pLEADDicomNet->GethPDU());
//now disable it
m_pLEADDicomNet->SetAsyncOperations(m_pLEADDicomNet->GethPDU(), FALSE, 0, 0);
cStr.Format("AsyncOperations Disabled:\n\tInvoked[%d]\n\tPerformed[%d]", lInvoked, lPerformed);
AfxMessageBox(cStr);
}
else
{
m_pLEADDicomNet->SetAsyncOperations(m_pLEADDicomNet->GethPDU(), TRUE, 0, 0);
AfxMessageBox("AsyncOperations enabled");
}
}