| LEADTOOLS DICOM C++ Class Library Help > Classes and Member Functions > LDicomAssociate > LDicomAssociate Class Members > LDicomAssociate::IsImplementVersion |
#include "ltdic.h"
L_BOOL LDicomAssociate::IsImplementVersion(L_VOID)
Determines whether setting the Implementation Version is enabled for the DICOM Associate.
Returns
|
TRUE |
Setting the Implementation Version is enabled. |
|
FALSE |
Setting the Implementation Version is disabled. |
Comments
If setting the Implementation Version is enabled, the name may be retrieved using LDicomAssociate::GetImplementVersion, or set using LDicomAssociate::SetImplementVersion.
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
See Also
|
Functions: |
LDicomAssociate::GetImplementVersion, LDicomAssociate::SetImplementVersion |
|
Topics: |
Example
L_INT LDicomAssociate_IsImplementVersionExample(LDicomAssociate *m_pDicomAssociate)
{
L_INT nRet;
CString strMsg;
L_TCHAR szImplementVersion[PDU_MAX_VERSION_SIZE+1];
//...Assume associate object has been created
if (m_pDicomAssociate->IsImplementVersion())
{
//disable it and display old value
m_pDicomAssociate->GetImplementVersion(szImplementVersion, PDU_MAX_VERSION_SIZE+1);
nRet = m_pDicomAssociate->SetImplementVersion( FALSE, szImplementVersion);
strMsg = TEXT("ImplementVersion Disabled: \n");
strMsg += szImplementVersion;
AfxMessageBox(strMsg);
}
else
{
//enable it
nRet = m_pDicomAssociate->SetImplementVersion( TRUE, TEXT("v13.0"));
m_pDicomAssociate->GetImplementVersion(szImplementVersion, PDU_MAX_VERSION_SIZE+1);
strMsg = TEXT("ImplementVersion Enabled: \n") ;
strMsg += szImplementVersion;
AfxMessageBox(strMsg);
}
return DICOM_SUCCESS;
}