It is currently Sun Aug 18, 2019 5:18 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Why OpenLibrary() fails?
PostPosted: Mon Jun 24, 2019 1:55 pm 
Offline
User
User

Joined: Tue Feb 14, 2006 2:00 pm
Posts: 62
Hello,

can anyone help me with OpenLibrary()? Why this 32 bit dll cannot be opened in 5.70 LTS x86?

This will print "0":
Code:
Debug OpenLibrary(0, "e:\dev\x264grabtest\libx264-157.dll")

I can open another library, but not this one.

Download dll: http://www.mediafire.com/file/dl1g9vg44 ... 7.dll/file


Top
 Profile  
Reply with quote  
 Post subject: Re: Why OpenLibrary() fails?
PostPosted: Mon Jun 24, 2019 2:14 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon Dec 21, 2015 8:12 pm
Posts: 140
The dll have dependencies, try SetCurrentDirectory() before you open it..

Code:
SetCurrentDirectory("e:\dev\x264grabtest\")
Debug OpenLibrary(0, "e:\dev\x264grabtest\libx264-157.dll")


Top
 Profile  
Reply with quote  
 Post subject: Re: Why OpenLibrary() fails?
PostPosted: Mon Jun 24, 2019 2:33 pm 
Offline
User
User

Joined: Tue Feb 14, 2006 2:00 pm
Posts: 62
fryquez wrote:
The dll have dependencies, try SetCurrentDirectory() before you open it..

Code:
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Why OpenLibrary() fails?
PostPosted: Mon Jun 24, 2019 2:41 pm 
Offline
Addict
Addict

Joined: Wed Nov 12, 2008 5:01 pm
Posts: 1048
Location: Russia
For libx264-157.dll needed libgcc_s_dw2-1.dll.

_________________
Library XP_Menu_Lib - office menu; HID_Lib - USB Library
Torrent client - pbTorrent (source code); Create driver in PureBasic.


Top
 Profile  
Reply with quote  
 Post subject: Re: Why OpenLibrary() fails?
PostPosted: Tue Jun 25, 2019 7:17 am 
Offline
Addict
Addict

Joined: Sun Sep 07, 2008 12:45 pm
Posts: 4279
Location: Germany
You can use depends.exe 'Dependency Walker' to see that LIBGCC_S_DW2-1.dll is needed beside the LIBX264-157.dll


Top
 Profile  
Reply with quote  
 Post subject: Re: Why OpenLibrary() fails?
PostPosted: Tue Jun 25, 2019 8:27 pm 
Offline
User
User

Joined: Tue Feb 14, 2006 2:00 pm
Posts: 62
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Demivec, forgottencoder and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye