LDicomAssociate::GetCalled

#include "ltdic.h"

L_CHAR * LDicomAssociate::GetCalled(L_VOID)

Returns the name of the Application Entity that was called.

Returns

The name of the Application Entity that was called.

Comments

For more information on the structure of an Associate, refer to LEADTOOLS DICOM Network Communication Support for Message Exchange.

Required DLLs and Libraries

LTDIC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

See Also

Functions:

LDicomAssociate::SetCalled, LDicomAssociate::GetCalling, LDicomAssociate::SetCalling

Topics:

Working with DICOM Associate Connections

Example

{   
   //m_pDicomAssociate is a member variable declared as:
   //    LDicomAssociate *m_pDicomAssociate;
   CString strMsg;
   
   //create the Associate Class as Request
   m_pDicomAssociate = new LDicomAssociate(TRUE);
   
   //set the Associate to the default
   m_pDicomAssociate->Default();
   
   //set called application title
   m_pDicomAssociate->SetCalled ("The Called Program");
   //set calling application title
   m_pDicomAssociate->SetCalling ("The Calling Program");
   
   //display the current values
   strMsg.Format( "GetCalled[%s]\nGetCalling[%s]", 
      m_pDicomAssociate->GetCalled(),
      m_pDicomAssociate->GetCalling()
      );
   AfxMessageBox(strMsg);
   
   //Free associate
   delete m_pDicomAssociate;