#include "Ltdic.h"
L_UINT32LDicomDS::GetConvertValue(pElement, Destination, DestSizeInWords)
Converts the value of an element to a string, and returns the number of characters in that string.
Pointer to aDICOMELEMENTstructure within the Data Set.
Character string to be updated with the string version of the value.
Size of the Destination buffer.
Number of characters in the Destination parameter.
Call this function twice. The first should have Destination set to NULL. This will provide you with the size of the string that will be stored in Destination. Next, allocate the memory required for Destination and call this function again to update Destination with the string.
Required DLLs and Libraries
Win32, x64
This example converts the value to a string and display it in a list-box control.
L_INT LDicomDS_GetConvertValueExample(LDicomDS *pDS, pDICOMELEMENT pElement)
{
L_TCHAR* pszText;
L_TCHAR* p;
L_TCHAR* q;
L_UINT32 nLength;
L_UINT32 nCount;
L_UINT32 i;
nCount = pDS->GetCountValue(pElement);
nLength = pDS->GetConvertValue(pElement, NULL, 0);
pszText = (L_TCHAR *)malloc(nLength *sizeof(L_TCHAR));
pDS->GetConvertValue(pElement, pszText, nLength);
for(i = 0, p =通知;我< nCount;我+ +)
{
q = wcschr(p, '\\');
if(q != NULL)
{
*q++ = 0;
}
::MessageBox(NULL, p, TEXT("Value"), MB_OK);
p = q;
}
free(pszText);
pDS->FreeValue(pElement);
returnDICOM_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
188宝金博怎么下载
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
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.