It is currently Sat Jan 19, 2019 1:16 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Lib2PBImport 2013 - new Version
PostPosted: Thu Jan 03, 2013 12:59 am 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
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

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Last edited by ts-soft on Thu May 11, 2017 9:36 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Thu Jan 03, 2013 8:23 am 
Offline
Addict
Addict
User avatar

Joined: Wed Feb 17, 2010 12:00 am
Posts: 1324
Location: (Embarrassed to say country)
Glad to see it being maintained, but...

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

in contrast, the old one:
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Thu Jan 03, 2013 11:27 am 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
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

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Thu Jan 03, 2013 4:04 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Feb 17, 2010 12:00 am
Posts: 1324
Location: (Embarrassed to say country)
ts-soft wrote:
...without enabled XP-Style, please test it...

YUP! Working now.

Thanks
-j


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Fri Jan 04, 2013 10:59 am 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
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

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Fri Jan 04, 2013 2:32 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
Update:

Fixed a problem with generated Importsource.

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Fri Jan 04, 2013 6:08 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Aug 09, 2003 3:13 am
Posts: 748
Location: 90-61-92 // EU or ASIA
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)


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Fri Jan 04, 2013 6:20 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
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.

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Fri Jan 04, 2013 10:34 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
Update:

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

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Tue Jan 08, 2013 11:25 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
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.

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Sat Feb 02, 2013 3:45 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
small bugfix:
Insert Import use the codepage (ASCII or UTF-8) from the actuell scintilla.

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Sat Feb 02, 2013 4:55 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5779
Location: Wales, UK
Really usefull tool, thank you so much for taking the time to publish it. 8)

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

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Sat Feb 02, 2013 5:42 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
Thx,
IdeasVacuum wrote:
Enhancement request: Save Import - remember path last saved to.

Done :wink:

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Sat Feb 02, 2013 6:19 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Aug 31, 2005 11:09 pm
Posts: 3670
Location: Italy
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.

_________________
Philosophy is questions that may never be answered. Religion is answers that must never be questioned.

[ My little PureBasic review ]


Top
 Profile  
Reply with quote  
 Post subject: Re: Lib2PBImport 2013 - new Version
PostPosted: Sat Feb 02, 2013 6:29 pm 
Offline
Always Here
Always Here
User avatar

Joined: Thu Jun 24, 2004 2:44 pm
Posts: 5749
Location: Berlin - Germany
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?

_________________
PureBasic 5.70 | SpiderBasic 2.10 | Windows 10 Pro (x64) | Linux Mint 19.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2, 3  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 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