Question - open_dll()
- Posted by jessedavis Aug 12, 2016
- 1426 views
I have a couple of C (NOT Cpp) routines that I thought it would be nice to access from Euphoria. I packaged them in a .dll file. I cannot open the file with open_dll() function and I don't understand why. I'm obviously missing something very basic.
atom user32 = open_dll("user32.dll")
The above works OK.
atom dll_pntr = open_dll("eu.dll")
The above does not. It returns dll_pntr = 0 which says that euphoria was unable to find the file. Now, the two .dll files are in the same directory. I have also tried complete path names.
I have checked out the eu.dll library with a dll viewer and the functions are inside with addresses and indexes that look OK. I wrote a small C program that uses this .dll and it works fine.
A little help would be greately appreciated.
Thanks in advance,
jd