Over the years, all my code examples from my writing and the forum have become a total mess, and I am trying to organize them all together.
Additionally, because PB has broken the userlib format a few times, PB users are now switching to releasing .pbi files. This is actually fine with me, but library sets like Nexus have a main include file, which then includes quite a few other .pbi files.
Also, since I have become more proficient with C and ASM, I have been able to make static libs for use with PB. Alot of my code now depends on Libs. So my folders not only have .pb files, but have .lib and .obj littered about.
What I am asking for is a mix of the Japbe setup and something new. I'd like a directory in the main PB folder called "Includes", with subfolders "Static" and "Residents".
Accessing the PB Include folder could be done like Japbe by checking checkboxes which then automatically include the file. OR, a constant called "#PB_Include_Path", #PB_Residents_Path and #PB_StaticLib_Path
Includefile #PB_include_Path +"Droopy.pbi"
Import #PB_StaticLib_Path + "AniGIFlib.lib"
This method would allow any PB user to write .pbi files, ane be COMPLETELY CONSISTENT for ALL PB users when distributing. All users would have to do is put the .pbi file and static libs into the proper directories and just use a single include line. Even if a .pbi file includes other .pbi files in subfolders. Additionally, user can then modify the EDITABLE .pbi files to suit their needs.
EX:
Code: Select all
Includefile #PB_include_Path +"Droopy\Droopy.pbi"
Includefile #PB_Residents_Path +"Droopy\Droopy_Res.pbi"
Import #PB_StaticLib_Path + "GIFlibraries\AniGIFlib.lib"
Procedure This (that.l)
Procedure AniGIFControl(hwnd)
My Biggest problem is that I have 2 workstations and a laptop that I program on where i synchronize my PB folders. When on my laptop, all the paths get waaay screwed up because of different drive letters. With this system above, the Include and LIB paths are FIXED and CONSISTENT.
The whole userlib thing seems to be inefficient anymore. I am asking for a UNIFIED and STANDARD way to setup includes and share workable code.
If not, can there be at least a subforum SPECIFICALLY for userlibs where the community shares, verifies, and validates that a particular lib works with a specific PB version? And after a good bit of users have validated the lib, it could be added to a "trusted" list of userlibs that are certified for use with PB versions. My biggest problem is organization followed by endless testing and checking for userlib functionality.