Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomAssociate::IsImplementVersion

Show in webframe

#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

Platforms

Win32, x64

See Also

Functions:

LDicomAssociate::GetImplementVersion, LDicomAssociate::SetImplementVersion

Topics:

Working with DICOM Associate Connections

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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.