Re: problem with DLM using external DLL [message #91892 is a reply to message #91873] |
Wed, 09 September 2015 04:14  |
Haje Korth
Messages: 651 Registered: May 1997
|
Senior Member |
|
|
I set my DLM Path in windows under Preferences->IDL->Paths under Select Path->DLM Path and it works for me.
On Tuesday, September 8, 2015 at 12:20:37 PM UTC-4, superchromix wrote:
> hi,
>
> I've created a DLM in which I make calls to other functions stored in other DLL files. Let's say that my dlm consists of the following files: MYDLM.DLM and MYDLM.DLL. Within MYDLM.DLL, there is a call to a function that resides within the SECOND.DLL library.
>
> I try to load my dlm with the following command:
>
> DLM_LOAD, 'C:\mypath\MYDLM.DLM'
>
> This fails with the following error:
>
> % DLM_LOAD: Error loading sharable executable.
> Symbol: IDL_Load, File = C:\mypath\MYDLM.dll
> The specified module could not be found.
> % Execution halted at: $MAIN$
>
> However, everything loads correctly and works fine IF I copy the file SECOND.DLL into the binary directory of IDL, meaning the same directory in which idl.exe resides.
>
> Why can't IDL find the SECOND.DLL, which is referenced in MYDLM.DLL? In this case SECOND.DLL is in the same path as MYDLM.DLL, i.e. 'C:\mypath\'.
>
> Adding C:\mypath\ to the IDL_DLM_PATH or to IDL_PATH does not help.
>
> Does anyone have a suggestion? Copying the SECOND.DLL file to the IDL root directory does not seem like a good solution.
>
> thanks
> Mark
|
|
|