Re: Win32 not finding a DLL after Binding
- Posted by mattlewis (admin) Jun 12, 2009
- 947 views
penpal0andrew said...
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