PDA

View Full Version : Daemon Tools 4.30.01 and imgengine.dll error when loading daemon.dll



Jaime
24.09.2008, 16:37
I've noticed that with 3rd party tools that try to load daemon.dll, when the working directory is not the daemon tools installation folder, an error pops up showing that imgengine.dll can't be loaded.

This happens since it is trying to load it from the exe's working directory. I guess that the solution should involve loading imgengine.dll dinamically.

It would be great if you could fix it in the next version.

Blazkowicz
24.09.2008, 16:43
Which 3rd party tools wants to load daemon.dll? Can you give any example.

Jaime
25.09.2008, 10:31
BTEWin, for example. The problem is that f.e. in C

HMODULE hModule = LoadLibrary(TEXT "c:\daemon\daemon.dll"));

will only work if the executable's working/current directory is c:\daemon, otherwise it won't be able to load imgengine.dll .

A workaround can be implemented, but the best way would be that daemon.dll loads imgengine.dll dinamically.

Blazkowicz
25.09.2008, 12:03
Dev of that 3rd party programme should just set working directory.