comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Save a program with DICOM object
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Save a program with DICOM object [message #31662] Fri, 26 July 2002 08:53
David Fanning is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Save a program with DICOM object
Next Topic: how to input idl figure to MS office

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 11:16:26 PDT 2025

Total time taken to generate the page: 0.88275 seconds