Lib2PBImport Version 1.2
Small Update:
drop support for libfile
unusable symbols removed ("__imp")
drop support for libfile
unusable symbols removed ("__imp")
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

r_hyde wrote: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!@r_hyde: excuse the dumb ass question! Are you per-chance the R. Hyde of HLA fame?

I may look like a mule, but I'm not a complete ass.
Update:
parameters in grid to combobox
parameters in grid to combobox
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Update:
+ Open Project
+ Save Project
+ Drop Support for Projectfile
+ Open Project
+ Save Project
+ Drop Support for Projectfile
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

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"
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 ;}
A+
Denis
Denis
ts-soft
i found some problems with number of parameters
take a closer look
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
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
Another thing
is-it possible to add to the menu an item :
Open lib from PB
to load directly from Directory : Purelibraires\Windows\Libraries
A+
Denis
Denis
Re: Lib2PBImport Version 1.0
Thanks, ts-soft!
This should be very useful for my current project!

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

@Denis
I will add an optional function to generate Macros like:
I will check the count of parameters for stdcall.
>> Open lib from PB
will do
@all
thx for testing
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
>> Open lib from PB
will do

@all
thx for testing
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Small Update:
+ fixed parametercount
+ Open Lib from PB (ctrl+P)
+ fixed parametercount
+ Open Lib from PB (ctrl+P)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Small Update:
+ CodeView uses Colors from PB-IDE, if found
+ CodeView uses Colors from PB-IDE, if found
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Update:
+ SplitView for CodeView
+ Save-Button for CodeView
+ SplitView for CodeView
+ Save-Button for CodeView
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

donets-soft wrote:@Denis
I will add an optional function to generate Macros like:

Creates optional Macros for Unicode/Ansi
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
