Finding Resource Files [message #64250] |
Thu, 11 December 2008 06:55 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Folks,
I find as I write larger programs for distribution to other
users that I have more and more need for resource files, by
which I mean bitmaps for buttons, special color table files,
the GSHHS vector files for overlays, etc. I am never certain
if, or where, these files are located on client machines.
To that end, I have written an IDL program that can search
in specific locations for a particular resource file, and if
it finds it, will return a fully-qualified path to that file.
It will look first in the IDL resource directories, then in
local resource directories (with respect to the location
of the program itself), then it will search the entire
IDL Path for the file.
The program, named Find_Resource_File, can be found here:
http://www.dfanning.com/programs/find_resource_file.pro
The program requires error_message.pro and programrootdir.pro
from the Coyote Library.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|