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

Show in webframe

#include "ltdic.h"

L_VOIDLDicomAssociate::GetCalled(strCalled, SizeInWords)

L_TCHAR * strCalled;

/* buffer to be updated */

L_UINT32 SizeInWords;

/* size of the destination string buffer */

Returns the name of the Application Entity that was called.

Parameter

Description

strCalled

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

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

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::SetCalled, LDicomAssociate::GetCalling, LDicomAssociate::SetCalling

Topics:

Working with DICOM Associate Connections

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;
} 
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.