comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Save a program with DICOM object

Save a program with DICOM object
type: item
description: I am trying to make a .sav file of a simple program: pro dcmhdr ; create a DICOM object, read a DICOM file and dump its contents: dcm_in=DIALOG_PICKFILE(TITLE='Choose DICOM file for dump') obj = OBJ_NEW( 'IDLffDICOM' ) var = obj->Read(dcm_in) obj->DumpElements ; dump the contents of the current DICOM object to a file hdr_out=DIALOG_PICKFILE(TITLE='Choose file to write DICOM dump') obj->DumpElements, hdr_out OBJ_DESTROY, obj END I saved it in the dcmhdr.sav file. When I run this program it stops with the message: Attempt to call undefined procedure/function: IDLFFDICOM__DEFINE I found in the newesgroup exchange that for objects you have to explicitly compile '...__DEFINE' module and then save it. The problem is that I couldnot find where is IDLFFDICOM__DEFINE and what I should compile in this case. What should I do to make a stand alone application dcmhdr.sav? I use IDL 5.3 on WinNT. Thank you in advance, Leonid Syrkin
creator: lsyrkin
date: 2002-07-26T15:14:17-00:00