LoadDicomDir method (ILEADDicomDir Interface)

VB.NET example

C# example

Visual Basic example

Visual C++ 6.0 example

 

Syntax

short LoadDicomDir(BSTR bstrFileName, short nFlags);

Overview

Refer to Creating DICOM Directories.

Remarks

The LoadDicomDir method loads the DICOM Directory Data Set from the specified file.

In addition to loading the DICOM Directory Data Set, the method also sets the destination folder to the folder in which the specified DICOMDIR File resides. Additional DICOM files in this folder (and subfolders) can be added to the loaded Directory.

If you know certain characteristics of the file, you can set those in nFlags. Any characteristic that you don’t set will be automatically determined. If you do not know any of the characteristics of the file, set nFlags to 0 and LEADTOOLS will automatically determine all the file characteristics and load the file accordingly.

If DS_LOAD_CLOSE is not set in the nFlags parameter, the file will remain open until this method is called again, the ResetDicomDir method is called, or the hDicomDirDS property is set to the handle of a Data Set.

See Also

Elements:

SaveDicomDir method

Topics:

DICOM Elements: DICOM Directories