LDicomAssociate::GetCalled

Summary

Returns the name of the Application Entity that was called.

Syntax

#include "ltdic.h"

L_VOID LDicomAssociate::GetCalled(strCalled, SizeInWords)

Parameters

L_TCHAR * strCalled

String Buffer to be updated with the name of the Application Entity that was called.

L_UINT32 SizeInWords

Size of the destination string buffer.

Returns

None.

Comments

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

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

L_INT LDicomAssociate_GetCalledExample(LDicomAssociate *m_pDicomAssociate) 
{ 
   L_INT nRet; 
   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 
   nRet = m_pDicomAssociate->SetCalled (TEXT("The Called Program")); 
   if(nRet != DICOM_SUCCESS) 
      return nRet; 
 
   //set calling application title 
   nRet = m_pDicomAssociate->SetCalling (TEXT("The Calling Program")); 
   if(nRet != DICOM_SUCCESS) 
      return nRet; 
 
   //display the current values 
   L_TCHAR szCalled[PDU_MAX_TITLE_SIZE+1]; 
   L_TCHAR szCalling[PDU_MAX_TITLE_SIZE+1]; 
 
   m_pDicomAssociate->GetCalled(szCalled, PDU_MAX_TITLE_SIZE+1); 
   m_pDicomAssociate->GetCalling(szCalling, PDU_MAX_TITLE_SIZE+1); 
 
   strMsg.Format( TEXT("GetCalled[%s]\nGetCalling[%s]"), szCalled, szCalling); 
   AfxMessageBox(strMsg); 
 
   //Free associate 
   delete m_pDicomAssociate; 
 
   return DICOM_SUCCESS; 
}  
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.