Re: Save a program with DICOM object [message #31662] |
Fri, 26 July 2002 08:53 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Leonid (lsyrkin@yahoo.com) writes:
> 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.
Well, you are right. Something strange is going on. :-)
I ran your program, then typed "Resolve_All". I got the same
message about IDLffDICOM__DEFINE not being defined. But I carried
on anyway, and saved the file as a save file. It ran perfectly
as a run-time program. This is in IDL 5.5, Windows 2000.
I'd contact RSI. This is an internal routine, it looks like.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|