PureBasic Libraries

Everything else that doesn't fall into one of the other PB categories.
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

PureBasic Libraries

Post by RichAlgeni »

Some questions about libraries, these are specifically for Windows, but they may be helpful for other platforms.

In \PureLibraries\Windows\Libraries, the only one I use is zlib.lib, as I have the wrapper for that library. Is there a central list of what these libraries do, and what parameters are required?

Also what are the files that are in \PureLibraries and \PureLibraries\Windows?
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: PureBasic Libraries

Post by Thorium »

That librarys are used by the PureBasic librarys. Zlib for example is used for the Zlib compression plugin and for PNG decompression.
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: PureBasic Libraries

Post by RichAlgeni »

But when you use Zlib, you have to import the library, right? Then have have to know the number and type of parameters you need to pass, right? You would also have to know what the Zlib library does, which some may not.
Thorium
Addict
Addict
Posts: 1314
Joined: Sat Aug 15, 2009 6:59 pm

Re: PureBasic Libraries

Post by Thorium »

RichAlgeni wrote:But when you use Zlib, you have to import the library, right? Then have have to know the number and type of parameters you need to pass, right? You would also have to know what the Zlib library does, which some may not.
Or you just use the packer library and let PB handle the ZLib.
On older versions we needed to import ZLib if we wanted to use it. Now the packer library supports it.
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: PureBasic Libraries

Post by RichAlgeni »

Thorium wrote:Or you just use the packer library and let PB handle the ZLib.
That's not really the point. The point is that there are these nice libraries included with PureBasic, but they are really of no use, unless you know: 1. What their purpose is, and 2. How to call them correctly.

There must be documentation for these libraries somewhere, I'm just not sure where to look.
Fred
Administrator
Administrator
Posts: 18550
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic Libraries

Post by Fred »

Each libs are needed by PB commands or built-in API functions. If you want to use them directly without using the related PB command, you can, but you have to find the doc yourself. For example, the doc of the zlib lib is here: http://www.zlib.net/manual.html
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: PureBasic Libraries

Post by RichAlgeni »

Fred wrote:Each libs are needed by PB commands or built-in API functions. If you want to use them directly without using the related PB command, you can, but you have to find the doc yourself.
Ok, now I understand. I thought those might have been contributed over the years.
Post Reply