PBImpLib tool

Developed or developing a new product in PureBasic? Tell the world about it.
Quantum
User
User
Posts: 51
Joined: Fri May 19, 2006 5:26 am
Contact:

PBImpLib tool

Post by Quantum »

I've just released an SDK-like package useful for creating PureBasic Userlibs interfacing external DLLs. Yes, it's very similar to what DLL Importer does, but it has some additional features for advanced development ;)

Code: Select all

[+] You can merge various heterogeneous DLL imports in a
    single Userlib file.
[+] Non-stdcall DLL functions are supported (i.e. CDECL and
    PureBasic calling conventions are currently supported)
[+] No trailing '_' is required in the PureBasic symbol name.
    In fact, you can customize the PureBasic symbol names.
[+] The complete SDK source code is available. So, you can
    extend it's functionality or fix a bug by yourself without
    violating any copyright law.
Originally it was intended for making an OpenAL Userlib for uFMOD, overcoming some of the DLL Importer limitations and avoiding using CallCFunction/CallCFunctionFast overhead. But now I realize it might be useful to other people too, so I made a minitutorial and a complete usage example.

Download:
http://implib.sf.net
Last edited by Quantum on Thu Feb 01, 2007 2:34 am, edited 1 time in total.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

I can't see any link in the forum?
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
Quantum
User
User
Posts: 51
Joined: Fri May 19, 2006 5:26 am
Contact:

Post by Quantum »

Downloading attachments is available only for registered members. Don't worry, I'll upload it to SourceForge ASAP.

OK, here it is:
http://ufmod.svn.sourceforge.net/viewvc ... /pbimplib/
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Thanks
It's not so easy but it work :wink:
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
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

sounds interesting. I need to reformat the readme.txt a little to read it. Thank you very much for the lib sdk. :)
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Thanks. I might use this. :D
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

just for clarify (after reading a bit in the source)
Is this tool able to make a userlib out of a DLL without
needing the dll later ?
SPAMINATOR NR.1
Quantum
User
User
Posts: 51
Joined: Fri May 19, 2006 5:26 am
Contact:

Post by Quantum »

Rings wrote:Is this tool able to make a userlib out of a DLL without
needing the dll later ?
It performs the same thing DLL Importer tool does, only that the final output is actually a Userlib, not an Implib, but it works like an Implib, still requiring the DLL, of course.

2 All:
Feel free to report bugs, if you find any. Thanks for the feedback.

P.S. BTW, I've just realized it's actually possible calling a cdecl dll function from Visual Basic 6 using the same technique, without additional wrapper dlls or delegators.
Quantum
User
User
Posts: 51
Joined: Fri May 19, 2006 5:26 am
Contact:

Post by Quantum »

A new version released. v1.6
[+] Added a tool DLL2DEF
[+] Updated the tutorial
[*] Fixed some bugs

Project moved to SF: http://implib.sf.net
Quantum
User
User
Posts: 51
Joined: Fri May 19, 2006 5:26 am
Contact:

Post by Quantum »

v1.7 released:

Code: Select all

[+] Introducing the ability to make "stripped" import
    libraries, useful for building smaller executables.
[+] Added many new examples of standard Windows API
    libraries (i.e. kernel32, user32, gdi32, etc.)
    updated with symbols from Windows 2000, XP and
    Vista (even all the undocumented symbols).
[*] Fixed a small bug in dll2def.
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Post by Comtois »

Nice work

Thank you
Please correct my english
http://purebasic.developpez.com/
Godai
Enthusiast
Enthusiast
Posts: 171
Joined: Thu Oct 05, 2006 8:13 pm

Post by Godai »

This should be called the PImpTool :)
Post Reply