Page 2 of 7

Posted: Wed Apr 26, 2006 7:29 pm
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:

Posted: Wed Apr 26, 2006 7:53 pm
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

Posted: Wed Apr 26, 2006 7:57 pm
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

Posted: Wed Apr 26, 2006 8:05 pm
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

Posted: Wed Apr 26, 2006 8:33 pm
by va!n
@ts-soft:
great amazing and usefull tool! thanks! 10/10points..

Posted: Tue Mar 11, 2008 6:12 am
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

Posted: Tue Mar 11, 2008 10:19 am
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

Posted: Tue Mar 11, 2008 9:35 pm
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

Posted: Wed Mar 12, 2008 7:00 am
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!

Posted: Wed Mar 12, 2008 10:52 am
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

Posted: Wed Mar 12, 2008 11:10 pm
by jack
I hope it's a false alarm, I hate to the one distributing a virus.

Posted: Thu Mar 13, 2008 9:46 am
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

Posted: Fri Mar 14, 2008 9:02 am
by SofT MANiAC
waiting... :D

Posted: Tue Mar 18, 2008 5:03 pm
by ts-soft
New link in the first post

Posted: Tue Apr 08, 2008 11:57 pm
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.