Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomAssociate::GetApplication

Show in webframe

#include "ltdic.h"

L_VOID LDicomAssociate::GetApplication(strApplication, SizeInWords)

L_TCHAR * strApplication;

/* buffer to be updated */

L_UINT32 SizeInWords;

/* size of the destination string buffer */

Gets the Application Context for the DICOM Associate.

Parameter

Description

strApplication

String Buffer to be updated with the Application Context for the DICOM Associate.

SizeInWords

Size of the destination string buffer.

Returns

None.

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

Platforms

Win32, x64

See Also

Functions:

LDicomAssociate::SetApplication

Topics:

Working with DICOM Associate Connections

Example

L_INT LDicomAssociate_GetApplicationExample(LDicomAssociate *m_pDicomAssociate)
{
   L_INT    nRet;
   CString  strMsg;
   L_TCHAR  szApplication[PDU_MAX_UID_SIZE+1];
   //create the Associate Class as Request
   m_pDicomAssociate = new LDicomAssociate(TRUE);
   //Getthe current Application Context
   m_pDicomAssociate->GetApplication(szApplication, PDU_MAX_UID_SIZE+1);
   strMsg.Format(TEXT("Current Application Context: %s"), szApplication);
   AfxMessageBox(strMsg);
   //change it
   nRet = m_pDicomAssociate->SetApplication(TEXT("9.9.999.99999.9.9.9.9"));
   if(nRet != DICOM_SUCCESS)
      return nRet;
   m_pDicomAssociate->GetApplication(szApplication, PDU_MAX_UID_SIZE+1);
   strMsg.Format(TEXT("New Application Context %s"), szApplication);
   AfxMessageBox(strMsg);
   //Free associate
   delete m_pDicomAssociate;
   return DICOM_SUCCESS;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.