#include "ltdic.h"
L_VOID LDicomAssociate::GetCalled(strCalled, SizeInWords)
Returns the name of the Application Entity that was called.
String Buffer to be updated with the name of the Application Entity that was called.
Size of the destination string buffer.
None.
For more information on the structure of an Associate, refer to LEADTOOLS DICOM Network Communication Support for Message Exchange.
Required DLLs and Libraries
Win32, x64
L_INT LDicomAssociate_GetCalledExample(LDicomAssociate *m_pDicomAssociate){L_INT nRet;CString strMsg;//create the Associate Class as Requestm_pDicomAssociate = new LDicomAssociate(TRUE);//set the Associate to the defaultm_pDicomAssociate->Default();//set called application titlenRet = m_pDicomAssociate->SetCalled (TEXT("The Called Program"));if(nRet != DICOM_SUCCESS)return nRet;//set calling application titlenRet = m_pDicomAssociate->SetCalling (TEXT("The Calling Program"));if(nRet != DICOM_SUCCESS)return nRet;//display the current valuesL_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 associatedelete m_pDicomAssociate;return DICOM_SUCCESS;}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
