Re: Win32 not finding a DLL after Binding
- Posted by penpal0andrew Jun 12, 2009
- 1005 views
This is not the problem. No matter where I place the files on the destination computer, the DLL is not found. And no matter where I place the files on the development computer, the DLL is found. Thinking this may be a DLL problem, I went to the destination computer and re-created the DLL from source files. The result was the same. I looked into Euphoria, and this is base Euphoria, and not win32. The code in Euphoria is:
draw_dll = open_dll ("Draw_MGS.dll") -- xxxx if draw_dll = 0 then abortErr( "DLL file not found" ) end if
Here are a few ideas:
- Have you tried using absolute paths?
- Do you have the dll installed to Windows\System32 on the dev machine, but not on the production machine?
- Can you open the file for reading?
draw_dll = open( "Draw_MGS.dll", "r" )
Matt
I found the problem. There are nested dependencies in the DLL I developed. And it happened to find these libraries from another application I installed, which does not exist in the other computer. The tool to use to find DLL dependencies is http://www.dependencywalker.com/ . This is not a Euphoria issue thank goodness.