The engine searches first in the DLLs in its plugins folder (normally acknex_plugins), and then in the DLLs explicitely loaded by dll_open(). If you use dll_open(), take care that you don't have a different DLL with the same function names in the plugins folder.