#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. |
None.
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 |
Win32, x64
Functions: |
LDicomAssociate::SetCalled, LDicomAssociate::GetCalling, LDicomAssociate::SetCalling |
Topics: |
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;}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
