DLL2PBLib SourceCode Generator Version 1.5.5

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

@SFSxOI
thanks :oops:
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.
Image
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Hi,

where can I find DLL2PB lib?
In the download link in the first post I can only find Lib2PB tool.
Thanks.
Proud registered Purebasic user.
Because programming should be fun.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

The development is stopped. For a short time, you can download it here:
www.realsource.de/tmp/DLL2PBLib.zip

Source for PB 3.94 is included :wink:
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.
Image
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Thank you, ts-soft. It's great. :)
Proud registered Purebasic user.
Because programming should be fun.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Post by QuimV »

:) ts-soft,
May I have DLL2PBLib.exe in english?
:( Unfortunatelly I don't speak german.
Thanks in advanced
QuimV
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

QuimV wrote::) ts-soft,
May I have DLL2PBLib.exe in english?
:( Unfortunatelly I don't speak german.
Thanks in advanced
I don't speak english :wink:
Please learn it or use this version:
http://realsource.de/tmp/dll2pblib_ml.zip
(supports france :wink: )

greetings
Thomas
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.
Image
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Post by QuimV »

@ts-soft
Thank you very much
:D
QuimV
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

I made a version of Thomas' code for my own needs. Beside code is ported to PB 4.x, this one generates include files out of dll inputs using the prototype way for accessing dll functions instead of generating Tailbite supporting outputs.

http://www.file-upload.net/download-103 ... 6.zip.html
Source included.
Last edited by inc. on Sun Aug 10, 2008 1:52 pm, edited 5 times in total.
Check out OOP support for PB here!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

:D thanks

To proposal:
Change API-Libraryfunctions in PB native, then it also works with unicode

Save the prefs in Appdata, so it works for none administrators (I use Vista :wink: )

greetings
Thomas
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.
Image
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Thanks a lot for this tool, ts-soft.
It works perfectly.
I didn't know you could include a DLL with your source like that. :)
Proud registered Purebasic user.
Because programming should be fun.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

byo wrote:Thanks a lot for this tool, ts-soft.
It works perfectly.
I didn't know you could include a DLL with your source like that. :)
The changes are from inc, so thank him :wink:
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.
Image
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Its a pity that Prototypes don't support string type returns directly, so it has to be done in case of strings via a peekS-Macro.

Whats the number of the special Folder AppData in the system? As the code already contains the procedure GetSpecialFolder so it should be no problem making it Vista compatible.

Btw., I did make the backround looking light blue so this will avoid confusions with DLL2PBLib.
Check out OOP support for PB here!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

The problem is: GetProcAddress_ API
There is no unicode-version available in windows, so it won't work with
unicode. Use PB Getfunction or change all functionnames to ASCII-String

> Whats the number of the special Folder AppData in the system?

Code: Select all

#CSIDL_APPDATA
greetings
Thomas
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.
Image
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Last edited by inc. on Sun Aug 10, 2008 1:52 pm, edited 2 times in total.
Check out OOP support for PB here!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

inc. wrote:Suggestions have been applied ....
:D fine, thanks
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.
Image
Post Reply