Tool to import static librarys into PB

Developed or developing a new product in PureBasic? Tell the world about it.
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

...but those PB wrapper functions are slower than those produced by my tool :twisted:

I hope to finally get to work a bit on this on sunday maybe, so stay tuned... :wink:

Timo
quidquid Latine dictum sit altum videtur
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Oh no doubt they are slower - it's good documentation though!

Thanks man, really really appreciate it!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

ricardo wrote:Nice idea!!!!

Im testing this tool that converts ANY dll into a lib:

http://www.binary-soft.com/dll2lib/dll2lib.htm

I convert the dynaload into a lib and will try to test with it.

At the moment im trying to use your tool but it seams to freeze (i will wait a little more)...

BTW, where does ned to point the LibMaker Path? To lib sdk?

:P
Holy, I'll pay $99 for this if... ah.. erm... just to check...... How do I access these static libraries in PB? Any sample code on that? Also, COM = ActiveX? Or am I way off track here? Especially when the activex dll have events that are raised...

Also if this tool would work perfectly with freak's tool, I will definately buy it ASAP.

Oh one last thing. Say I make an ActiveX dll w/ risen events and stuff in VB. And I want to convert it over to a static lib (this would be w/o the need of the vb runtimes), would this be possible? If So, say yes, and i'll buy the product asap :)
User avatar
waffle
Enthusiast
Enthusiast
Posts: 129
Joined: Mon May 12, 2003 1:34 pm
Location: USA
Contact:

Post by waffle »

here's a big potential surprise for someone really ambitious ....

1 - go to the raven software website ( or search "hexen source port")

2 - download zdoom ? and obtain source code.
With the source code (its c++) you'll get .... .lib files and some docs.

3 - now try and use those to load doom/hexen levels using PB

It is something I was tinkering with last week .... trying to get a C++ compiler to actual compile the source code so that I knew I could actually get a working mod from the code. No luck yet, but I'll tinker some more next week .... its something to do :)

Of course, I can't sell anything, unless I translate the code to PB and use my own media and prevent others from loading levels not intended for my game ..... But that could mean rewriting the bsp editor too.
Last edited by waffle on Mon Jun 07, 2004 11:22 am, edited 1 time in total.
Code is good... Its an international language.
FloHimself
Enthusiast
Enthusiast
Posts: 229
Joined: Wed May 14, 2003 3:38 pm
Location: Lüneburg - Germany

Post by FloHimself »

freak,
very nice tool!

first, i haven't used the tool yet, so i'm sorry when i'm asking something obvious. you have to declare the "number of parameters", but not the type. so your using always longs in the generated .desc file?

a nice feature would be a .def file import. so dll sources could be compiled to static libs and the generated or provided .def file could be used:

Code: Select all

function 
 alias     function
  |         name
  |          |   *---- number of params
  V          V   V
PB_error = error@4 @1
so you don't have to hack in 50 functionnames and aliases, because aliases in a .def file could be created by scripts.

regards,
flo
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Did anything ever come of this? Did you get it to work with the new linker?
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Heh, I think it's a dead project. I have an ActiveX (ocx) control I wanted to use in purebasic, however that is currently not a reality (interface generator doesnt work). But when compiling the code, it spit out a LIB file :D I was going to use that via this tool but .... well, no way to use it if I cannot handle events returned from the control..
Post Reply