LDicomAssociate::GetApplication

#include "ltdic.h"

L_CHAR * LDicomAssociate::GetApplication(L_VOID)

Gets the Application Context for the DICOM Associate.

Returns

A character string that contains the Application Context for the DICOM Associate.

Comments

The default value for the Application Context is "1.2.840.10008.3.1.1.1" (UID_APPLICATION_CONTEXT_NAME).

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::SetApplication

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);
   
   //Getthe current Application Context
   strMsg.Format("Current Application Context: %s", m_pDicomAssociate->GetApplication());
   AfxMessageBox(strMsg);
   
   //change it
   m_pDicomAssociate->SetApplication("9.9.999.99999.9.9.9.9");
   strMsg.Format("New Application Context %s", m_pDicomAssociate->GetApplication());
   AfxMessageBox(strMsg);
   
   //Free associate
   delete m_pDicomAssociate;
}