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 »

Flype wrote:hello, this tool is really useful.
but since pb4 i like to use Import/EndImport whenever it's possible.
So i'm wondering if it could be implemented in your tool.

:?:

i started to discuss about this here:
http://purebasic.fr/english/viewtopic.p ... 083fc49804
I can not load a static lib dynamically, so i can not test the parameters. :cry:
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
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

why ts-soft ?
i do not understand why you can't because
if your tool can generate this ( sample from libmysql.dll ) :

Code: Select all

; Source generiert durch DLL2PBLib
; Copyright 2005 by Thomas Schulz (TS-Soft)
; Init-Funktion
ProcedureDLL libmysql_Init()
  Shared DLL.l
  DLL = LoadLibrary_("libmysql.dll")
  If DLL
    mysql_fetch_field = GetProcAddress_(DLL, "mysql_fetch_field")
    mysql_fetch_field_direct = GetProcAddress_(DLL, "mysql_fetch_field_direct")
    mysql_fetch_fields = GetProcAddress_(DLL, "mysql_fetch_fields")
    mysql_fetch_lengths = GetProcAddress_(DLL, "mysql_fetch_lengths")
    mysql_fetch_row = GetProcAddress_(DLL, "mysql_fetch_row")
  EndIf
EndProcedure
; End-Funktion
ProcedureDLL libmysql_End()
  Shared DLL.l
  FreeLibrary_(DLL)
EndProcedure
ProcedureDLL.l mysql_fetch_field(a.l)
  ProcedureReturn CallFunctionFast(mysql_fetch_field,a)
EndProcedure

ProcedureDLL.l mysql_fetch_field_direct(a.l,b.l)
  ProcedureReturn CallFunctionFast(mysql_fetch_field_direct,a,b)
EndProcedure

ProcedureDLL.l mysql_fetch_fields(a.l)
  ProcedureReturn CallFunctionFast(mysql_fetch_fields,a)
EndProcedure

ProcedureDLL.l mysql_fetch_lengths(a.l)
  ProcedureReturn CallFunctionFast(mysql_fetch_lengths,a)
EndProcedure

ProcedureDLL.l mysql_fetch_row(a.l)
  ProcedureReturn CallFunctionFast(mysql_fetch_row,a)
EndProcedure
it might be able to generate this

Code: Select all

; Source generiert durch DLL2PBLib
; Copyright 2005 by Thomas Schulz (TS-Soft)
; Init-Funktion

Import "libmysql.lib"
  mysql_fetch_field(a.l)
  mysql_fetch_field_direct(a.l,b.l)
  mysql_fetch_fields(a.l)
  mysql_fetch_lengths(a.l)
  mysql_fetch_row(a.l)
EndImport
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
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 »

i can not load a static lib, so i can not use the disasm-functions from onerrorlib. a lib is not a dll, sry
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
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

This is nice. Something weird though... try to import the Engine3d.dll

No functions show up at all?

Oh and also could you *please* make it use the internal pb functions for libraries?

It'd really help out with porting dll's to Linux. Then all I'd have to do is change .dll to .so
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

Post by va!n »

@ts-soft:
great amazing and usefull tool! thanks! 10/10points..
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Does anyone have the link to this that works? Or at least a copy of it I could see??? There is nothing on here or purearea.net! :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
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 »

Rook Zimbabwe wrote:Does anyone have the link to this that works? Or at least a copy of it I could see??? There is nothing on here or purearea.net! :D
This tool is only usefull for pb < 4.xx
I have no webspace in the moment, sry

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
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

Rook Zimbabwe wrote:Does anyone have the link to this that works? Or at least a copy of it I could see??? There is nothing on here or purearea.net! :D
->dll2pblib.zip
Image
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

jack wrote:
Rook Zimbabwe wrote:Does anyone have the link to this that works? Or at least a copy of it I could see??? There is nothing on here or purearea.net! :D
->dll2pblib.zip
Image
Got a virus warning!
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
jpd
Enthusiast
Enthusiast
Posts: 167
Joined: Fri May 21, 2004 3:31 pm

Post by jpd »

Hi IceSoft,

Uploading the file on virustotal.com

recieved the following result:



Datei DLL2PBLib.exe empfangen 2008.03.12 10:37:26 (CET)Antivirus Version letzte aktualisierung Ergebnis
AhnLab-V3 2008.3.12.0 2008.03.12 -
AntiVir 7.6.0.73 2008.03.12 -
Authentium 4.93.8 2008.03.11 -
Avast 4.7.1098.0 2008.03.11 -
AVG 7.5.0.516 2008.03.11 -
BitDefender 7.2 2008.03.12 -
CAT-QuickHeal 9.50 2008.03.10 -
ClamAV 0.92.1 2008.03.11 -
DrWeb 4.44.0.09170 2008.03.11 -
eSafe 7.0.15.0 2008.03.09 suspicious Trojan/Worm
eTrust-Vet 31.3.5607 2008.03.11 -
Ewido 4.0 2008.03.11 -
FileAdvisor 1 2008.03.12 -
Fortinet 3.14.0.0 2008.03.12 -
F-Prot 4.4.2.54 2008.03.11 -
F-Secure 6.70.13260.0 2008.03.12 -
Ikarus T3.1.1.20 2008.03.12 -
Kaspersky 7.0.0.125 2008.03.12 -
McAfee 5249 2008.03.11 -
Microsoft 1.3301 2008.03.12 -
NOD32v2 2939 2008.03.12 -
Norman 5.80.02 2008.03.11 -
Panda 9.0.0.4 2008.03.12 -
Prevx1 V2 2008.03.12 -
Rising 20.35.20.00 2008.03.12 -
Sophos 4.27.0 2008.03.12 -
Sunbelt 3.0.930.0 2008.03.05 -
Symantec 10 2008.03.12 -
TheHacker 6.2.92.243 2008.03.12 -
VBA32 3.12.6.2 2008.03.05 -
VirusBuster 4.3.26:9 2008.03.11 -
Webwasher-Gateway 6.6.2 2008.03.12 -

weitere Informationen
File size: 35328 bytes
MD5: 7d880ae9c97c6c33da94d88bc6c07cc8
SHA1: a2c418563c484b3071e83645f5e07cd4d1b48898
PEiD: UPX 2.90 [LZMA] -> Markus Oberhumer, Laszlo Molnar & John Reiser
packers: UPX
packers: UPX
packers: UPX

the only vendor that detect this as "suspicious" is esafe

with 99,9999 % is this a F.P.

send the file to esafe analyse ....

Best
jpd
PB 5.10 Windows 7 x64 SP1
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Post by jack »

I hope it's a false alarm, I hate to the one distributing a virus.
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 »

I have new webspace (thanks kiffi :wink: ) and i hope i become in the
next week DSL at home, so i can upload the most used tools and libs

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
SofT MANiAC
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Sep 17, 2007 10:28 am
Location: P.O.P
Contact:

Post by SofT MANiAC »

waiting... :D
POiNT.OF.PRESENCE group
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 »

New link in the first post
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
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Post by SFSxOI »

I just wanted to thank you for providing probably one of my most favorite tools. I've used the heck out of this with Vista and its new API's. Don't know what I would have done without it, I probably would have given up on PureBasic somewhat for some projects if this tool wasn't available. It has saved me countless hours, enabled me to generate what i needed on the spot in a lot cases, and generally has made my PureBasic use much more enjoyable. This tool is truely one of those "best thing since popcorn" tools.

I sincerely thank you for such a useful and welcomed tool.
Post Reply