Returns the name of the Application Entity that was called.
#include "ltdic.h"
L_VOID LDicomAssociate::GetCalled(strCalled, SizeInWords)
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.
Win32, x64
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 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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.