Load a DLL from another directory at program start

后端 未结 6 1039
予麋鹿
予麋鹿 2021-02-03 11:43

My basic issue is this: my program (MyProgram.exe) has a dependency on a DLL from another program (OtherProgram), and I\'m trying to avoid repackaging a new DLL every time Other

6条回答
  •  春和景丽
    2021-02-03 12:33

    Use Symbolic Links to the 3rd Party Executables

    I found the approach advocated by Aaron Margosis useful. See:

    Using NTFS Junctions to Fix Application Compatibility Issues on 64-bit Editions of Windows

    Essentially, create symbolic links to each of the dependent 3rd Party executables. Place these symbolic link files in and amongst your own dependent executable files. Except for filename changes to the targets, the 'soft' symbolic links will resolve the load-time dependencies even as the target of the links are changed by future updates.

提交回复
热议问题