Here is a small tutorial on how to use Tailbite under Windows with PB 5.73LTE (and higher). With Tailbite you can create and use additional programs as pb lib.
Installation:
1) Download with exe files but also source codes here:
https://c.web.de/@334971174352067001/oc ... xEm8IuFhNw
2) Please unpack the zip file into the PureBasic folder (Purebasic\Tailbite)
3) Choose in PB "Menu Tools" -> "Configure Tools" -> "New"
4) In Commandline chose the Tailbite manager (c:\Program Files\PureBasic\TailBite\TBManager.exe)
5) in Name: TailBite\TBManager and ok and you are ready to go
Notes:
1) Tailbite requires admin rights
2) It is important that all variables etc. are available in procedures.
3) To use lib function you must declare these as ProcedureDll
4) Have a look on my file "MP3D_OpenGL_Library" how to make a userlib
5) I use the program PureHelp Maker Version 1.04.109 to make a help file from the created lib. If you are interested, i can also publish it here as a download and instruction note. i dont have this as souce code, it was from Gnozal and i never heard from him again
![Embarassed :oops:](./images/smilies/icon_redface.gif)
![Wink :wink:](./images/smilies/icon_wink.gif)
First lib with tailbite and a solution for a problem
1) Create a code
ProcedureDLL Increment(Value, Inc = 2)
ProcedureReturn(Value + inc)
EndProcedure
"inc = 2" doesnt work with tailbite, so you must make it in this case:
Code: Select all
Procedure Increment_All(Value,INC) ; My kind of solution
ProcedureReturn (Value + INC)
EndProcedure
ProcedureDLL Increment(Value) ; Procedure2
INC = 2
ProcedureReturn Increment_All(Value, INC)
EndProcedure
ProcedureDLL Increment2(Value,INC) ; Procedure2
ProcedureReturn Increment_All(Value, INC)
EndProcedure
3) Start the Tailbite manager (PB menu -> tailbite manager)
4) Activate here "Multilib option" to create a threadsafe and a unicode lib
5) Choose the correct Purebasic folder
6) Choose the library subsystem folder. Here i choose for my lib "MP3D_OpenGL_Library" the "subsytems\OpenGL\purebasic\userlibraries".
7) Select your file myfirst_lib.pb with correct path (C:\Program Files\PureBasic\Examples\myfirst_lib.pb)
![Cool 8)](./images/smilies/icon_cool.gif)
9) Choose Tailbite!
If you make a new program you can use the new function for example (if you choose the correct subsystem library, if you want you can create a own subsystem)
debug Increment(10) -> 12 (10+2)
debug Increment(10,10) -> 20 (10+10)
Greetings
Michael