Code PBLibs in PB

Developed or developing a new product in PureBasic? Tell the world about it.
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Good to know, thanks. Small tip for varargs (I'm not sure if it works ok right now, can't test it):

Code: Select all

ProcedureDLL MyBox(message$) ; this is MY box, don't touch it!
  ProcedureReturn MessageRequester("MyBox", message$)
EndProcedure

ProcedureDLL MyBox2(message$, Title$)
  ProcedureReturn MessageRequester(Title$, message$)
EndProcedure
Thanks for testing it. Regards,
El_Choni
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Tested similar stuff today and it didn't work out.
Your tool seemed to work fine, well at least without error message.

But while using both variants in one code PureBasic said "false amount of parameters" - for the second command call (with 2 parameters instead of 1).

Also tested a simple code from the codearchiv, a simple window with windows api and it didn't work.
Something like: "no reference for sys_memory_string" or similar came up.

But over all, for a early beta it's really 8)

Thanks for such a tool.

I am to provide the public with beneficial shocks.
Alfred Hitshock
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

OK, I post just to make you remember to put the array support in Tailbite :)
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Will a PB Lib, that only uses PB commands in it work under Linux !? :?:
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I don't think so (unless you compile it in Linux)
El_Choni
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

Is the array done now, we are January 4th :lol: :lol:
No, seriously, you can take your time, I'm just impatient :)
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

I got flu, I can hardly type, just wait a bit, please.
El_Choni
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

:)
I can't wait for an update, array are really important for me :)

If you can allow
Global array.l
for example, it would be great !
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Well, you can do one, or various, of these things: a) Play with the TailBite source code, which is included in the installer (extract from TailBite Manager); b) Wait until I get better and return home, not before Thursday; c) Keep saying you can't wait.

All three are ok for me. Have a nice day,

PS: arrays are always global. You can already use global variables, IIRC.
El_Choni
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I did up this through tailbite :

http://www.reelmediaproductions.com/pb/ ... Decode.zip

And it *seemed* to work well until I tried to call the function and got a "Base64Decoder is not a function" compiler error... I restarted the compiler and made sure the lib was in the right place...

Awesome tool!!!
-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
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

And it *seemed* to work well until I tried to call the function
So, it seemed to work well until you actually tried to use it ;)

I'll check this when I'm back home, on Thursday. I'm better now.

Regards,

PS: functions exported from the lib must be ProcedureDLL, functions used only by the lib, Procedure. Check this, please.
El_Choni
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Doh!

I had changed that when I was playing with the source and forgot to change it back!

It works well now! Thanks!
-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
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Post by Polo »

err, just to say that Global variables do NOT work :?
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Funny, they used to work since the very first build. I´ll fix that also when I´m home (tonight, promised).
El_Choni
Justin
Addict
Addict
Posts: 948
Joined: Sat Apr 26, 2003 2:49 pm

Post by Justin »

Hi, i tried your tool with the test lib included and i got the same error someone reported at the beginning, Error line 16777215 i hope you can fix it for the next version.
Post Reply