Page 2 of 3

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 6:32 pm
by luis
Thank you for considering it :)

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 6:34 pm
by ts-soft
I have edit my answer, please read again :wink:

If you save the export of new functions in the same file as the old, the import will be added (extra not merged)

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 6:40 pm
by luis
ts-soft wrote: I think save without change the settings (all functions are selected, all parameters set to 0)
is not usefull?
Sorry in my hurry to thank you I had missed the question :)

Uhmm... I'm not sure to understand it by the way :oops:

Save the settings for the included/excluded functions ? I don't have that need right now, and considering the naming of the functions can change and they can be also added/removed... I would say probably no.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 6:46 pm
by ts-soft
Without make some settings, this tool is not usefull. You have to add the count of parameters.
I import only functions, that required, some shown functions are not usefull and will not work
(special in c++ libs) for import.
The tool is designed to append, if you select the same importfile.

I will see if i can do anythink, but i think a can't do it in a usefull way.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 8:33 pm
by luis
I think I understand what you mean now.
Using it with a dll the parameters' counters are all set to 0 so it can't be used in batch mode but it requires some editing of the counters where needed.

Initially I tried it with a .lib created by PB for the corresponding .dll always created by PB and in that case the number of parameters is not fixed to 0, the number for each function is correct.

So it would seem good in that case, but unfortunately there is another problem: the type for all parameters it's set to .i even if some are strings, and this would require some editing nevertheless, so probably it's not feasible for what I had in mind :(

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 8:42 pm
by skywalk
It is a pity you must also have the header file for a lib or dll to automate the parameter calls.

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 8:47 pm
by ts-soft
luis wrote:Initially I tried it with a .lib created by PB for the corresponding .dll always created by PB and in that case the number of parameters is not fixed to 0, the number for each function is correct.
This is only true, if the stdcall convention with decoration is used in the importlib.
So it only works in very rare (only 32-Bit) libs. Most libs have removed the decoration.

Sorry, but this tool is only usefull to create a template for your import (and if required a importlib for DLL)

Greetings - Thomas

Re: Lib2PBImport 2013 - new Version

Posted: Sat Feb 02, 2013 8:50 pm
by luis
Yes, I understand, I missed that initially. My fault.

Thank you :wink:

Re: Lib2PBImport 2013 - new Version

Posted: Sun Feb 03, 2013 4:20 pm
by IdeasVacuum
Owch - just got hurt not paying attention to what was being displayed - clicked the Preview button, assumed I was looking at a second window, so when I clicked the titlebar close window [x] button, Lib2PB closed, without offering to save.

It would be good if we could save the table to resume at a later date - I have a 530 function lib to import and it is taking much longer to input than I anticipated because some of the functions in the lib are missing from the vendor's header file/documentation.

Re: Lib2PBImport 2013 - new Version

Posted: Sun Feb 03, 2013 5:06 pm
by ts-soft
Okay, i will add Save- and LoadProject, but without the offering to save.
Saving on close is automatic done, if you have saved the project one time.

Greetings - Thomas

Re: Lib2PBImport 2013 - new Version

Posted: Sun Feb 03, 2013 6:44 pm
by IdeasVacuum
....that will be great, thanks Thomas. 8)

Re: Lib2PBImport 2013 - new Version

Posted: Sun Feb 03, 2013 8:05 pm
by ts-soft
No problem :wink:

Done

Re: Lib2PBImport 2013 - new Version

Posted: Mon Feb 04, 2013 1:51 pm
by ts-soft
Small Bugfix:
"|" and all text after this, in comments, was not restored from projectfiles. Fixed.

Re: Lib2PBImport 2013 - new Version

Posted: Sun Feb 17, 2013 5:25 am
by X
Is it possible (for future versions) to be able to read LIB or DLL files and spit out import files with parameters?

Re: Lib2PBImport 2013 - new Version

Posted: Sun Feb 17, 2013 8:25 am
by ts-soft
No, I can read no values which do not exist. Also in future not!