Page 2 of 5

Posted: Sat Jan 13, 2007 12:56 am
by ts-soft
Small Update:

drop support for libfile
unusable symbols removed ("__imp")

Posted: Sat Jan 13, 2007 10:17 am
by srod
r_hyde wrote:
@r_hyde: excuse the dumb ass question! Are you per-chance the R. Hyde of HLA fame?
Sorry, no. It's not the first time I've been asked, either, since I usually go by r. hyde (or similar) and in programming circles the question does occasionally come up. Would that I had but a fraction of that *other* r. hyde's talent!
:D

Posted: Sat Jan 13, 2007 3:11 pm
by ts-soft
Update:
parameters in grid to combobox

Posted: Sat Jan 13, 2007 8:48 pm
by ts-soft
Update:

+ Open Project
+ Save Project
+ Drop Support for Projectfile

Posted: Sun Jan 14, 2007 10:31 am
by Denis
Hi ts-soft

nice tools indeed. I get it.

will it be possible to add in generated import code, test(s) for unicode/ainsi to get the same function name with ainsi/unicode (a checkbox or something like that will be great to generate code by this way)

this is some code i use to import some functions from "Winspool.lib"

Code: Select all

Import "Winspool.lib" ;{
 CompilerIf #PB_Compiler_Unicode
    GetDefaultPrinter(*name, stringsize.l) As "_GetDefaultPrinterW@8"
    OpenPrinter(*pPrinterName, *phPrinter, *pDefault.PRINTER_DEFAULTS) As "_OpenPrinterW@12"
  CompilerElse
    GetDefaultPrinter(*name, stringsize.l) As "_GetDefaultPrinterA@8"
    OpenPrinter(*pPrinterName, *phPrinter, *pDefault.PRINTER_DEFAULTS) As "_OpenPrinterA@12"
  CompilerEndIf

EndImport ;}

Posted: Sun Jan 14, 2007 11:11 am
by Denis
ts-soft

i found some problems with number of parameters

take a closer look

Code: Select all

Import "ole32.lib"
  CoGetInstanceFromFile() As "_CoGetInstanceFromFile@32"
  CoGetInstanceFromIStorage() As "_CoGetInstanceFromIStorage@28"
EndImport
CoGetInstanceFromFile must have 8 parameters etc.

Another thing

is-it possible to add to the menu an item :

Open lib from PB

to load directly from Directory : Purelibraires\Windows\Libraries

Re: Lib2PBImport Version 1.0

Posted: Sun Jan 14, 2007 3:27 pm
by Tipperton
Thanks, ts-soft!

This should be very useful for my current project!
ts-soft wrote:Unix is user friendly... it's just selective about who its friends are!
And thanks for this too! I got a good laugh out of it! :mrgreen:

Posted: Sun Jan 14, 2007 6:10 pm
by ts-soft
@Denis
I will add an optional function to generate Macros like:

Code: Select all

Import "Winspool.lib" ;{
    GetdefaultprinterW(*name, stringsize.l) As "_GetDefaultPrinterW@8"
    GetdefaultprinterA(*name, stringsize.l) As "_GetDefaultPrinterA@8"
EndImport ;} 

Macro Getdefaultprinter(a,b)
  CompilerIf #PB_Compiler_Unicode
    GetdefaultprinterW(a,b)
  CompilerElse
    GetdefaultprinterA(a,b)
  CompilerEndIf
EndMacro
I will check the count of parameters for stdcall.

>> Open lib from PB
will do :wink:

@all
thx for testing

Posted: Sun Jan 14, 2007 6:27 pm
by Denis
:D

Posted: Sun Jan 14, 2007 7:08 pm
by ts-soft
Small Update:

+ fixed parametercount
+ Open Lib from PB (ctrl+P)

Posted: Sun Jan 14, 2007 7:55 pm
by Denis
ts-soft wrote:Small Update:

+ fixed parametercount
+ Open Lib from PB (ctrl+P)
Tks ts-soft

+ fixed parametercount --> seems to be Ok
+ Open Lib from PB (ctrl+P)[/quote] --> usefull (unless for me)

Posted: Sun Jan 14, 2007 11:35 pm
by ts-soft
Small Update:

+ CodeView uses Colors from PB-IDE, if found

Posted: Mon Jan 15, 2007 7:29 am
by ts-soft
Update:

+ SplitView for CodeView
+ Save-Button for CodeView

Posted: Mon Jan 15, 2007 7:39 pm
by ts-soft
ts-soft wrote:@Denis
I will add an optional function to generate Macros like:
done :D

Creates optional Macros for Unicode/Ansi

Posted: Mon Jan 15, 2007 9:06 pm
by Denis
Thks ts-soft

that's Ok

And is it possible to display (on titlebar or statusbar) number of functions/selected functions