DLL 2 lib

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

DLL 2 lib

Post by GeoTrail »

Has anyone tried this? Would it work for use with PB?
http://www.binary-soft.com/dll2lib/dll2lib.htm
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Post by flaith »

nope, and have you tried that way : (must have mingw32 installed)

Code: Select all

pexports yourdll.dll > yourdll.def
dlltool -d yourdll.def -l libyourdll.a (or .lib)
:)
“Fear is a reaction. Courage is a decision.” - WC
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

dlltool produce an import lib, the dll is still needed where dll2lib create real static lib. (no implicit linking)
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

yup I tried it before it works. You need to use LibraryMaker to create a wrapper for PB to use. :)
H.Brill
User
User
Posts: 12
Joined: Tue Sep 20, 2005 6:07 am

DLL2LIB

Post by H.Brill »

NEdit at pureArea.net is such a lib (converted
from a freeware dll).
i think, in most cases it will work. with another dll
i have got errors and the .lib is many bigger as the
dll. (dll = 85 KB, the generated lib = ~300 - 400KB).

a better way is to bind the dll with the UdRes - lib and load
it with the PBOSL - lib
address = LoadLibraryM(MemoryPointer.l)
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Ok, thanks for your feedback guys.
Besides, $399 is a lot of money.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: DLL2LIB

Post by ts-soft »

H.Brill wrote: a better way is to bind the dll with the UdRes - lib and load
it with the PBOSL - lib
address = LoadLibraryM(MemoryPointer.l)
In the actual version of UDRes is LoadLibraryM not required. You can direct
access to DLL functions.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

GeoTrail wrote:Ok, thanks for your feedback guys.
Besides, $399 is a lot of money.
It's not worth the money.
I tried that application and 6 of 10 libraries actually worked without problems.
Post Reply