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?
PureBasic Libraries
- RichAlgeni
- Addict

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

- Posts: 935
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: PureBasic Libraries
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.
Re: PureBasic Libraries
Or you just use the packer library and let PB handle the ZLib.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.
On older versions we needed to import ZLib if we wanted to use it. Now the packer library supports it.
- RichAlgeni
- Addict

- Posts: 935
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: PureBasic Libraries
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.Thorium wrote:Or you just use the packer library and let PB handle the ZLib.
There must be documentation for these libraries somewhere, I'm just not sure where to look.
Re: PureBasic Libraries
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
- RichAlgeni
- Addict

- Posts: 935
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: PureBasic Libraries
Ok, now I understand. I thought those might have been contributed over the years.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.
