Re: Question - open_dll()
- Posted by petelomax Aug 13, 2016
- 1499 views
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 greatly appreciated.
First, double and treble check 32 vs 64 bit - the dll and the eui.exe[?] you are using. If it's not that, it's a path issue.
Run procmon against both. Add a filter of Path/ends with/.dll when you first run it (it will be preserved for the second run). Be sure to stop capture (the light blue microphone) asap once the test is done. There will be plenty of red herrings, but you should be able to see where it is looking, and succeeding/failing, and figure out the difference between the one that works and the one that does not. Save the results (as .PML) so you can switch between the two, and/or as .CSV, so you can post bits here. If you get really stuck, post the .dll and C test program somewhere and I'll give it a spin (but since it is likely a path issue, that may not help).
If you download a copy of Phix, there is a demo\arwendemo\filedumpN.exw that might help (but probably won't, and I've only ever tested that on Phix, not OE).
Pete