Here is my problem: I would like to create two separate instances of the same DLL.
The following does not work because Handle1 and Handle2 will get the same address
Handle1 := LoadLibrary('mydll.dll'); Handle2 := LoadLibrary('mydll.dll');
The following works, but I have to make a copy of the DLL and rename it to something else (which seems a little silly)
Handle1 := LoadLibrary('mydll.dll'); Handle2 := LoadLibrary('mydll2.dll');
Is there a way to have only one dll file but load multiple instances of it?
source share