Page 1 of 3

Lib2PBImport 2013 - new Version

Posted: Thu Jan 03, 2013 12:59 am
by ts-soft
After a long time, i have created a new version of Lib2PBImport.
Required OS: Windows XP and higher.

This tool reads static libs and Importlibs for DLLs and displays the included functions.

You can and should make various settings in the tool:
- Number of parameters (partially recognized in StdCall libs with decoration)
- Change AliasName
- Select which functions should imported
- Calling Convention of functions (StdCall, CDECL or FASTCALL)

Then you can save an ImportTemplate as an include file, copy to the Clipboard, or
the tool was started directly from the IDE you can directly insert.

Screenshot:
Image

Download

Greetings - Thomas

Re: Lib2PBImport 2013 - new Version

Posted: Thu Jan 03, 2013 8:23 am
by jassing
Glad to see it being maintained, but...

win2003 - when I ran it and opened a lib:
Image

in contrast, the old one:
Image

Re: Lib2PBImport 2013 - new Version

Posted: Thu Jan 03, 2013 11:27 am
by ts-soft
Thanks for bugreport!

I have updated the version, to refresh on systems without enabled XP-Style, please test it.

To see all buttons, you have to configure as IDE-Tool, like this:
Image
Attention: "Insert Import" will only work, if you not changed the Tab in the IDE!

You can open your libs from Explorer- or Projectpanel with doubleclick.
Drop a lib on the GUI is also supported.

Added New-Button "Save Import"

Have Fun

Thomas

Re: Lib2PBImport 2013 - new Version

Posted: Thu Jan 03, 2013 4:04 pm
by jassing
ts-soft wrote:...without enabled XP-Style, please test it...
YUP! Working now.

Thanks
-j

Re: Lib2PBImport 2013 - new Version

Posted: Fri Jan 04, 2013 10:59 am
by ts-soft
Update:

- More menuentries and shortcuts added
- Comments colored in red
- Imports can be created for DLLs, therefore is the polib.exe in the directory of the tool required (supplied).
DLLs can be opened via the menu or drop.

The create of imports may be still some bugs, please test it.

Greetings - Thomas

Re: Lib2PBImport 2013 - new Version

Posted: Fri Jan 04, 2013 2:32 pm
by ts-soft
Update:

Fixed a problem with generated Importsource.

Re: Lib2PBImport 2013 - new Version

Posted: Fri Jan 04, 2013 6:08 pm
by sec
ts-soft wrote:Thanks for bugreport!

I have updated the version, to refresh on systems without enabled XP-Style,

Thomas
How you fix that? My app has same problem (menuitem, or toolbar do not show image)

Re: Lib2PBImport 2013 - new Version

Posted: Fri Jan 04, 2013 6:20 pm
by ts-soft
sec wrote: How you fix that? My app has same problem (menuitem, or toolbar do not show image)
This is very individuell :wink:
For Menu you can add: DrawMenuBar_(hWnd)
(make sure, you have used: CreateImageMenu)
For Gadgets: InvalidateRect_(hWnd, 0, #True)

You should make a search in the forum, you will found many tipps to solve such problems.

Re: Lib2PBImport 2013 - new Version

Posted: Fri Jan 04, 2013 10:34 pm
by ts-soft
Update:

- Creation of importlibs supports 64-Bit DLLs (autodetect)
- The Alias (As "...") is now optional for created Importsource

Re: Lib2PBImport 2013 - new Version

Posted: Tue Jan 08, 2013 11:25 pm
by ts-soft
Update:

+ added Flag /NOUND to Polib
Polib-Help wrote:The /NOUND option prevents the library manager from adding an underscore ('_') to the beginning of symbols exported from an executable.
Only affect symbols that looks like functions, and lacks other form of decoration.
+ updated Polib to Version 7.00
+ Drop a Lib or DLL on a not empty grid opens a new instance.
+ Preview with ScintillaGadget
Screenshot:
Image

If there comes no bugreports or wishes, i think this one is the final.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 3:45 pm
by ts-soft
small bugfix:
Insert Import use the codepage (ASCII or UTF-8) from the actuell scintilla.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 4:55 pm
by IdeasVacuum
Really usefull tool, thank you so much for taking the time to publish it. 8)

Enhancement request: Save Import - remember path last saved to.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 5:42 pm
by ts-soft
Thx,
IdeasVacuum wrote:Enhancement request: Save Import - remember path last saved to.
Done :wink:

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 6:19 pm
by luis
It's nice thanks and yes I have a wish :)

Would be nice to be able to run it from the command line, something like:

Lib2PBImport libname.lb [/alias] > libname_import.pbi

to automate includes creation when updating a dll, especially if you have multiple versions of it ... or many dll.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 6:29 pm
by ts-soft
In the moment following commandline parameter used:
1. Filename with path of lib or dll
2. LastPath (Path from last opened Lib)
3. SavePath (Path from last saved Import)

I think save without change the settings (all functions are selected, all parameters set to 0)
is not usefull?