DLL2PBLib SourceCode Generator Version 1.5.5

Developed or developing a new product in PureBasic? Tell the world about it.
Zach
Addict
Addict
Posts: 1675
Joined: Sun Dec 12, 2010 12:36 am
Location: Somewhere in the midwest
Contact:

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by Zach »

You could always install something like Sandboxie

Turn off your AV, save the file, then open it inside the sandbox where it is isolated, copy the source code out. Try suspect exe's, etc.

Good workaround for waiting on stupid AntiVirus companies to fix stuff, when you're still paranoid of something.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re:

Post by luis »

inc. wrote: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.

Source included.
Is this still available somewhere ? I would like to give a look at the source because maybe I need to make something similar (or to modify this).

I tried to look on ts-soft's websites (the thread hinted that maybe it could been hosted there), I found a PureDLLHelper but it's binary only, and says it's made by ts-soft. So I'm not sure what's what.

http://www.realsource.de/index.php/down ... edllhelper

Thanks!
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by ts-soft »

you found the downloadlink in the first post, but is not compatible to pb 4.xx

PureDLLHelper != DLL2PBLib
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
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by luis »

@ts-soft

Thanks but I was looking for the version "forked" by inc. (that one is described as already supporting pb4, prototypes, and with source). Only problem are the usual dead-links.

If possible I would like to start from there. Is that one available somewhere ? Surely someone downloaded it.

PureDLLHelper seems to do in part what I need too but not having the source I can't start from that :)
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by ts-soft »

luis wrote:PureDLLHelper seems to do in part what I need too but not having the source I can't start from that :)
This source uses ExGrid by srod, so i can't make the source public

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
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by luis »

I have bought srod's grid.

But that's beyond the point, I'm not asking for it (I would never ask for a source if the author did not make it available in the first place), only for the version made by Inc. that was supplied with the source.

I'll wait to see if someone can help me or if a solar flare removed every copy in existence.

You for example, didn't keep it ? :)
ts-soft wrote:Okay, i will add it to realsource.de the next days, thanks
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by netmaestro »

luis, I found something called 'dll2pblib' in my libraries folder and it seems to have source included, could you see if that's what you're looking for?

http://lloydsplace.com/dll2pblib.zip

I hope it helps you.
BERESHEIT
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by luis »

@netmaestro

Thank you but that's the original code by ts-soft in the first post, the version by Inc. should have a name similar to "DLL2PBInclude-1.5.6.zip", judging by this:

http://www.purebasic.fr/english/viewtop ... 30#p254630

Maybe Inc. himself will drop here in time, I hope at least him kept a copy :)

But thanks :wink:
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by netmaestro »

I can't find anything like that unfortunately. Good luck in your quest!
BERESHEIT
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by Demivec »

luis wrote:@netmaestro

Thank you but that's the original code by ts-soft in the first post, the version by Inc. should have a name similar to "DLL2PBInclude-1.5.6.zip", judging by this:

http://www.purebasic.fr/english/viewtop ... 30#p254630

Maybe Inc. himself will drop here in time, I hope at least him kept a copy :)

But thanks :wink:
I have a version by that name and it was obtained 2 days after inc posted the message in the link you gave. It will be available for a week here.


@Edit: Removed link to file.
Last edited by Demivec on Thu Dec 01, 2011 4:06 pm, edited 1 time in total.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by luis »

@Demivec

Looks like the right one! Doesn't work out of the box with PB 4.60 unfortunately but I'll try to fix it (still uses DisASMCommand).

Thank you very much!
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by ts-soft »

with the new disasm you can't do the same as with the old one, it will not work :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
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by luis »

Yes, I quickly adapted it to PB 4.60 and did a rough check. Seems the disasm used by PB get lost quite easily.
I suppose this can be fixed using another dissassembler anyway.
Nice trick to get that infos from the dll :)

Bye!
"Have you tried turning it off and on again ?"
A little PureBasic review
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by netmaestro »

To get at the DisAsm command from a previous version of Purebasic, you could put it in a .dll project compiled with the earlier version. Your code could call that command from the dll and bob's your uncle. In theory anyway, it seems like it might work.
BERESHEIT
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: DLL2PBLib SourceCode Generator Version 1.5.5

Post by luis »

Thanks for the suggestion netmaestro, sounds like a good tip, I'll keep that in mind.
Anyway there are some stable disasm engine available so it's probably worth the effort to interface with something (hopefully) good and actively maintained once for all. I'll try and see.
netmaestro wrote:...and bob's your uncle
:)

Didn't know that expression: http://en.wikipedia.org/wiki/Bob%27s_your_uncle
"Have you tried turning it off and on again ?"
A little PureBasic review
Post Reply