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

Home » Public Forums » archive » 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
How to look up the directory tree for calling external DLLs? [message #75397] Tue, 01 March 2011 17:56
James[2] is currently offline  James[2]
Messages: 44
Registered: November 2009
Member
I have some IDL functions that call external C programs. My compiled
C DLLs are located in a different folder from the IDL programs, in the
same parent directory but several folders deep. For example, the DLL
is located in /Project/Cutils/ProgName/Bin/ while the IDL function
that calls it is in /Project/Toolbox/.

I would like the IDL file to be able to reach the DLL file and call
it, even if the parent directory gets moved around, copied to a
different machine, etc.

I was hoping I could just do this by creating a file path string
with /../ in it to go up the directory tree: for this example, /../
Cutils/ProgName/Bin. But this is not working for me. CALL_EXTERNAL
says "The specified module could not be found."

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.

Thanks,
James
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Combination
Next Topic: Re: How to look up the directory tree for calling external DLLs?

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

Current Time: Wed Oct 08 11:39:40 PDT 2025

Total time taken to generate the page: 0.00504 seconds