Gets the Application Context for the DICOM Associate.
#include "ltdic.h"
L_VOID LDicomAssociate::GetApplication(strApplication, SizeInWords)
String Buffer to be updated with the Application Context for the DICOM Associate.
Size of the destination string buffer.
None.
The default value for the Application Context is "1.2.840.10008.3.1.1.1" (UID_APPLICATION_CONTEXT_NAME).
Win32, x64
L_INT LDicomAssociate_GetApplicationExample(LDicomAssociate *m_pDicomAssociate){L_INT nRet;CString strMsg;L_TCHAR szApplication[PDU_MAX_UID_SIZE+1];//create the Associate Class as Requestm_pDicomAssociate = new LDicomAssociate(TRUE);//Getthe current Application Contextm_pDicomAssociate->GetApplication(szApplication, PDU_MAX_UID_SIZE+1);strMsg.Format(TEXT("Current Application Context: %s"), szApplication);AfxMessageBox(strMsg);//change itnRet = m_pDicomAssociate->SetApplication(TEXT("9.9.999.99999.9.9.9.9"));if(nRet != DICOM_SUCCESS)return nRet;m_pDicomAssociate->GetApplication(szApplication, PDU_MAX_UID_SIZE+1);strMsg.Format(TEXT("New Application Context %s"), szApplication);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
