Just starting out? Need help? Post your questions and find answers here.
-
fryquez
- Enthusiast
- Posts: 362
- Joined: Mon Dec 21, 2015 8:12 pm
Post
by fryquez »
The dll have dependencies, try SetCurrentDirectory() before you open it..
Code: Select all
SetCurrentDirectory("e:\dev\x264grabtest\")
Debug OpenLibrary(0, "e:\dev\x264grabtest\libx264-157.dll")
-
rotacak
- User
- Posts: 77
- Joined: Tue Feb 14, 2006 2:00 pm
Post
by rotacak »
fryquez wrote:The dll have dependencies, try SetCurrentDirectory() before you open it..
Code: Select all
SetCurrentDirectory("e:\dev\x264grabtest\")
Debug OpenLibrary(0, "e:\dev\x264grabtest\libx264-157.dll")
Hmm, still not work. Is there any way how to show some error message, why it is not opened?
-
User_Russian
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Post
by User_Russian »
For libx264-157.dll needed libgcc_s_dw2-1.dll.
-
infratec
- Always Here
- Posts: 6817
- Joined: Sun Sep 07, 2008 12:45 pm
- Location: Germany
Post
by infratec »
You can use depends.exe 'Dependency Walker' to see that LIBGCC_S_DW2-1.dll is needed beside the LIBX264-157.dll
-
rotacak
- User
- Posts: 77
- Joined: Tue Feb 14, 2006 2:00 pm
Post
by rotacak »
Also libwinpthread-1.dll is needed by libgcc_s_dw2-1.dll. I used 'Dependency Walker' and I finally can open that dll. Thank you guys.