Re: Using callable intf to C w/ READ_TIFF [message #37399] |
Sun, 14 December 2003 03:33 |
Chris Lee
Messages: 101 Registered: August 2003
|
Senior Member |
|
|
Judy wrote:
> Help!!!
>
> When I try to make the following call in a C program:
>
> IDL_ExecuteStr("image = READ_TIFF(\"image.tif\")");
>
> IDL complains:
>
> IDL> % Variable is undefined: READ_TIFF.
> IDL> % Execution halted at: $MAIN$
>
> The file image.tif is present. When I make this call using the IDL
> GUI, there is no problem.
>
> I am using IDL on Win2k, compiling under Cygwin's gcc, in case that
> helps.
>
> I have many other successful calls using IDL_ExecuteStr, but this one
> is failing.
>
> Thanks in advance,
> J
READ_TIFF is using DLM code, which is likely written in C. When you type
that string into an IDL command line you get "Loaded DLM: TIFF" in
response.
Some other trickery is required to call it from C, possibly calling
ExecuteStr with
DLM_LOAD, "tiff"
Chris.
|
|
|