SendAssociateRequest Example for C++ 6.0 and later
{
//create the Associate Class as Request
m_pLEADDicomNet->CreateAssociate (TRUE);
//use default for association
m_pLEADDicomNet->DefaultAssociate (m_pLEADDicomNet->GethPDU());
m_pLEADDicomNet->SetCalling (m_pLEADDicomNet->GethPDU(),"Terry");
m_pLEADDicomNet->SetCalled(m_pLEADDicomNet->GethPDU(), "MI_SERVER");
//this shows a client sending to its server
m_pLEADDicomNet->SendAssociateRequest(m_pLEADDicomNet->GethNet());
//now we can free the class
m_pLEADDicomNet->FreeAssociate (m_pLEADDicomNet->GethPDU());
}