Page 1 of 1

PBImpLib tool

Posted: Thu Jan 25, 2007 12:22 am
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

Posted: Thu Jan 25, 2007 12:44 am
by ts-soft
I can't see any link in the forum?

Posted: Thu Jan 25, 2007 12:57 am
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/

Posted: Thu Jan 25, 2007 2:02 am
by ts-soft
Thanks
It's not so easy but it work :wink:

Posted: Thu Jan 25, 2007 2:12 am
by SFSxOI
sounds interesting. I need to reformat the readme.txt a little to read it. Thank you very much for the lib sdk. :)

Posted: Thu Jan 25, 2007 2:28 am
by JCV
Thanks. I might use this. :D

Posted: Thu Jan 25, 2007 8:44 am
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 ?

Posted: Thu Jan 25, 2007 4:27 pm
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.

Posted: Thu Feb 01, 2007 2:36 am
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

Posted: Mon Apr 09, 2007 4:28 am
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.

Posted: Mon Apr 09, 2007 6:58 pm
by Comtois
Nice work

Thank you

Posted: Thu Apr 12, 2007 8:11 pm
by Godai
This should be called the PImpTool :)