Distributing DLM with a SAV file and COM wrapper [message #93301] |
Thu, 09 June 2016 09:21 |
srobbins99
Messages: 1 Registered: June 2016
|
Junior Member |
|
|
Hi,
We build and distribute three IDL programs. All use a custom DLM. [Environment is IDL 8.0.1 on Windows 7 64-bit]
Two of the programs are simple .SAV files. Experimentally, we discovered that placing the DLM and DLL next to the SAV file works, although that is not a documented practice that I could find. Moreover, "Robbie" indicates this will only "occasionally work depending on the IDL version, OS, shell and environment variables" -- see https://groups.google.com/d/msg/comp.lang.idl-pvwave/DtZK4m8 gnDY/sqpqg4xV7nwJ
The third program contains a COM wrapper. Naively placing the DLM/DLL in the same directory as the SAV file doesn't work in this case. It does work, of course, if I place the DLM/DLL somewhere in the IDL_DLM_PATH. But for isolation, I'd prefer not to have the DLM visible globally. Is there some way I can set the IDL_DLM_PATH specifically when the COM is instantiated? I'm aware there's an environment variable -- which is my last resort. But is there a way I can do it by placing a config file or something together with the SAV file?
Thanks,
-Steve
|
|
|