Page 4 of 4
Posted: Wed Nov 21, 2007 12:19 pm
by Fangbeast
Thanks for this NetMaestro. I've been wanting custom buttons for absolutely years. Square ones get very boring after a while (grin). Now I am going to try all sorts of stuff (pant, pant).
Re: As to why the lib isn't available..
Posted: Wed Nov 21, 2007 10:53 pm
by blueznl
PB wrote:
Regardless, I wonder if there's any way to "convert" old libs to be current,
without the source? Has anyone ever tried to reverse-engineer them, or
anything like that? There must be something that can be done for truly
abandoned libs.
There actually is a way. Most of these libs contain a set of functions (pooh!) and what you could do is fire up your old compiler, create a 'wrapper' in regular purebasic, then turn the result into a DLL.
That DLL will then work with any later version of PureBasic.
Okay, sounds great, but I admit I never tried this myself

Posted: Thu Nov 22, 2007 4:52 am
by byo
But how, without the source?

Posted: Thu Nov 22, 2007 4:56 am
by Flaming Amoeba
For what blueznl described, you wouldn't need the source.

Posted: Thu Nov 22, 2007 4:56 am
by netmaestro
I've done it before. You load the old compiler with the old compiled lib and write a dll that calls the lib's functions and returns to the calling program what the lib gives to it. It's a sound concept and usually works. It's a wrapper of sorts.
Posted: Thu Nov 22, 2007 5:37 am
by Flaming Amoeba
Now the hard part is learning how to make decent looking graphics to use for custom buttons

Posted: Sat Nov 24, 2007 6:48 am
by mrjiles
If you create a custom button that opens another window with a custom button, when the second window closes the original custom button goes wacky. Any ideas?
Posted: Sat Nov 24, 2007 3:21 pm
by netmaestro
Fixed. See updated topic in T&T forum.
Posted: Fri Jun 20, 2008 10:32 am
by atomo
Hi, thanks for your lib but i can't use it with purebasic 4.20, i have a POLINK error : unresolved external symbol 'PB_Delay'.

Posted: Fri Jun 20, 2008 11:44 am
by netmaestro
Posted: Fri Jun 20, 2008 1:25 pm
by atomo
thanks it work and sorry
