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

Home » Public Forums » archive » Re: How to look up the directory tree for calling external DLLs?
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: How to look up the directory tree for calling external DLLs? [message #75394] Tue, 01 March 2011 19:27
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 3/1/11 7:11 PM, David Fanning wrote:
> James writes:
>
>> Does anyone know how to solve this problem? I messed around with
>> FILE_SEARCH and FILEPATH a bit, but they have not helped so far.
>> FILE_SEARCH has a and FILEPATH only works for files that are within
>> the IDL root folder.
>
> FILEPATH doesn't just work for files in the IDL root folder.
> Use the ROOT_DIR keyword to direct it anywhere you like.
>
> I find File_Resource_File handy for locating any kind of
> a file in any directory that is on the IDL path:
>
> http://www.idlcoyote.com/programs/find_resource_file.pro

I agree that some type of routine like David's FIND_RESOURCE_FILE is
extremely useful. Also, note that you can expand notation like '~' and
'..' using FILE_EXPAND_PATH:

IDL> $pwd
/Users/mgalloy/projects/idllib/src
IDL> print, file_expand_path('../..')
/Users/mgalloy/projects

Mike
--
www.michaelgalloy.com
Research Mathematician
Tech-X Corporation
Re: How to look up the directory tree for calling external DLLs? [message #75395 is a reply to message #75394] Tue, 01 March 2011 18:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I find File_Resource_File handy

Whoops, FIND_Resource_File....

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: How to look up the directory tree for calling external DLLs? [message #75396 is a reply to message #75395] Tue, 01 March 2011 18:11 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
James writes:

> Does anyone know how to solve this problem? I messed around with
> FILE_SEARCH and FILEPATH a bit, but they have not helped so far.
> FILE_SEARCH has a and FILEPATH only works for files that are within
> the IDL root folder.

FILEPATH doesn't just work for files in the IDL root folder.
Use the ROOT_DIR keyword to direct it anywhere you like.

I find File_Resource_File handy for locating any kind of
a file in any directory that is on the IDL path:

http://www.idlcoyote.com/programs/find_resource_file.pro

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to look up the directory tree for calling external DLLs?
Next Topic: Read ASCII File with tab seperator

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

Current Time: Wed Oct 08 13:47:49 PDT 2025

Total time taken to generate the page: 0.00426 seconds